summaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-22 19:44:00 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-22 19:44:00 +0000
commit805e955d893ddf013b28dd5ee31820d09ee0e76e (patch)
treebfe8f0ff2c983de19f36cd4a9300aa5077350b4d /gcc/ipa-inline.c
parent90f3e775d6b7bec70e883579beb49b456c135a09 (diff)
downloadgcc-805e955d893ddf013b28dd5ee31820d09ee0e76e.tar.gz
PR ipa/64694
* ipa-inline.c (inline_small_functions): Fix thinko in maintenance of heap. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220011 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r--gcc/ipa-inline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index da1afc69047..aa93928b702 100644
--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -1794,7 +1794,7 @@ inline_small_functions (void)
#endif
if (current_badness != badness)
{
- if (edge_heap.min () && badness > edge_heap.min_key ())
+ if (edge_heap.min () && current_badness > edge_heap.min_key ())
{
edge->aux = edge_heap.insert (current_badness, edge);
continue;