PR jit/63854: Fix memory leak within bb-reorder.c
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 19 Nov 2014 19:28:33 +0000 (19:28 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 19 Nov 2014 19:28:33 +0000 (19:28 +0000)
gcc/ChangeLog:
PR jit/63854
* bb-reorder.c
(find_rarely_executed_basic_blocks_and_crossing_edges): Convert
local bbs_in_hot_partition from vec<> to auto_vec<>.

From-SVN: r217794

gcc/ChangeLog
gcc/bb-reorder.c

index 8328c07446ab2e83e7f58ea110a0762ead9e113e..18115e157eadc6d5d7475acd699609de7b8eaa1f 100644 (file)
@@ -1,3 +1,10 @@
+2014-11-19  David Malcolm  <dmalcolm@redhat.com>
+
+       PR jit/63854
+       * bb-reorder.c
+       (find_rarely_executed_basic_blocks_and_crossing_edges): Convert
+       local bbs_in_hot_partition from vec<> to auto_vec<>.
+
 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
 
        PR jit/63854
index 0cab286115166576c0df3c515d31da0aff00e3a9..689d7b6a471851253dd29ea53769ca37c107325f 100644 (file)
@@ -1581,7 +1581,7 @@ find_rarely_executed_basic_blocks_and_crossing_edges (void)
   edge e;
   edge_iterator ei;
   unsigned int cold_bb_count = 0;
-  vec<basic_block> bbs_in_hot_partition = vNULL;
+  auto_vec<basic_block> bbs_in_hot_partition;
 
   /* Mark which partition (hot/cold) each basic block belongs in.  */
   FOR_EACH_BB_FN (bb, cfun)