Fix memory leak in tree-if-conv.c

* tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.

From-SVN: r236470
This commit is contained in:
Martin Liska 2016-05-19 17:06:47 +02:00 committed by Martin Liska
parent 7f153d8202
commit f6b8cbb70e
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2016-05-19 Martin Liska <mliska@suse.cz>
* tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
2016-05-19 Martin Liska <mliska@suse.cz>
* ipa-pure-const.c (set_function_state): Remove an existing

View File

@ -2651,8 +2651,8 @@ ifcvt_repair_bool_pattern (basic_block bb)
tree rhs;
gimple *stmt;
gimple_stmt_iterator gsi;
vec<gimple *> defuse_list = vNULL;
vec<gimple *> pattern_roots = vNULL;
auto_vec<gimple *> defuse_list;
auto_vec<gimple *> pattern_roots;
bool repeat = true;
int niter = 0;
unsigned int ix;