Commit b3e508d7 by Martin Liska Committed by Martin Liska

Fix leak in gcc/tree-ssa-reassoc.c.

	* tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
	an auto_vec instead of re-creating it.

From-SVN: r236466
parent 843374f2
2016-05-19 Martin Liska <mliska@suse.cz>
* tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
an auto_vec instead of re-creating it.
2016-05-19 Martin Liska <mliska@suse.cz>
* tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
auto_vec instead of vec.
......
......@@ -732,7 +732,7 @@ eliminate_duplicate_pair (enum tree_code opcode,
if (ops->length () == 2)
{
ops->create (0);
ops->truncate (0);
add_to_ops_vec (ops, build_zero_cst (TREE_TYPE (last->op)));
*all_done = true;
}
......
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