PR jit/63854: Fix leak of "avail" within tree-ssa-pre.c
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 19 Nov 2014 20:14:18 +0000 (20:14 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 19 Nov 2014 20:14:18 +0000 (20:14 +0000)
gcc/ChangeLog:
PR jit/63854
* tree-ssa-pre.c (do_regular_insertion): Convert "avail" from
vec<> to auto_vec<> to fix a leak.

From-SVN: r217803

gcc/ChangeLog
gcc/tree-ssa-pre.c

index 959a0829f472dc77d8e98cb7a5964373b152402d..9c9bd0139e04de29f68e2e5226dba563187daec7 100644 (file)
@@ -1,3 +1,9 @@
+2014-11-19  David Malcolm  <dmalcolm@redhat.com>
+
+       PR jit/63854
+       * tree-ssa-pre.c (do_regular_insertion): Convert "avail" from
+       vec<> to auto_vec<> to fix a leak.
+
 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
 
        PR jit/63854
index c42b2a4dc1b4eb7759002ff6dcc9c596d0b9f015..933cf36bc572a99013377732f9c1d6c94f18ae95 100644 (file)
@@ -3202,7 +3202,7 @@ do_regular_insertion (basic_block block, basic_block dom)
   bool new_stuff = false;
   vec<pre_expr> exprs;
   pre_expr expr;
-  vec<pre_expr> avail = vNULL;
+  auto_vec<pre_expr> avail;
   int i;
 
   exprs = sorted_array_from_bitmap_set (ANTIC_IN (block));