Commit f6b8cbb7 by Martin Liska Committed by Martin Liska

Fix memory leak in tree-if-conv.c

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

From-SVN: r236470
parent 7f153d82
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
funct_state.
(remove_node_data): Do not free it as it's released
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment