]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ira-color.c (finish_cost_update): Free update_cost_queue_elems rather than update_cos...
authorJakub Jelinek <jakub@redhat.com>
Mon, 15 Sep 2008 21:57:17 +0000 (23:57 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 15 Sep 2008 21:57:17 +0000 (23:57 +0200)
* ira-color.c (finish_cost_update): Free update_cost_queue_elems
rather than update_cost_queue.

From-SVN: r140378

gcc/ChangeLog
gcc/ira-color.c

index fbb50d0a91bfe60cd23271249f0053b9dbca8bdd..31660347522ea30d9fea1a3eaa5dc0ed2da40185 100644 (file)
@@ -1,5 +1,8 @@
 2008-09-15  Jakub Jelinek  <jakub@redhat.com>
 
+       * ira-color.c (finish_cost_update): Free update_cost_queue_elems
+       rather than update_cost_queue.
+
        * tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
        in every call starting with the second one, instead of only when
        alias_bitmap_obstack.elements != NULL.
index 73b568e8ce104dfc472edb10514ede29bfd3e4f4..9146ac04dc9b966475e35af5ad0c224a4a24e9c9 100644 (file)
@@ -139,7 +139,7 @@ initiate_cost_update (void)
 static void
 finish_cost_update (void)
 {
-  ira_free (update_cost_queue);
+  ira_free (update_cost_queue_elems);
 }
 
 /* When we traverse allocnos to update hard register costs, the cost