diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-01-22 20:44:00 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-01-22 19:44:00 +0000 |
commit | d75de25bdede085f57bfa524f5ef7d355875b433 (patch) | |
tree | bfe8f0ff2c983de19f36cd4a9300aa5077350b4d /gcc/ipa-inline.c | |
parent | ff1803c128986d7095c723a84e7c18ce33b2111e (diff) | |
download | gcc-d75de25bdede085f57bfa524f5ef7d355875b433.zip gcc-d75de25bdede085f57bfa524f5ef7d355875b433.tar.gz gcc-d75de25bdede085f57bfa524f5ef7d355875b433.tar.bz2 |
re PR ipa/64694 (FAIL: 23_containers/unordered_set/insert/hash_policy.cc)
PR ipa/64694
* ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
heap.
Co-Authored-By: H.J. Lu <hongjiu.lu@intel.com>
From-SVN: r220011
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r-- | gcc/ipa-inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index da1afc6..aa93928 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; |