PR jit/63854: Fix leak of "avail" within tree-ssa-pre.c

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
This commit is contained in:
David Malcolm 2014-11-19 20:14:18 +00:00 committed by David Malcolm
parent 79cafc7ae4
commit 3b56f890da
2 changed files with 7 additions and 1 deletions

View 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

View 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));