* bt-load.c (migrate_btr_defs): Get the key of a heap entry
before removing it, not after.
From-SVN: r218056
+2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
+
+ * bt-load.c (migrate_btr_defs): Get the key of a heap entry
+ before removing it, not after.
+
2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
* config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove
while (!all_btr_defs.empty ())
{
- btr_def def = all_btr_defs.extract_min ();
int min_cost = -all_btr_defs.min_key ();
+ btr_def def = all_btr_defs.extract_min ();
if (migrate_btr_def (def, min_cost))
{
all_btr_defs.insert (-def->cost, def);