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
This commit is contained in:
Martin Liska 2016-05-19 17:05:07 +02:00 committed by Martin Liska
parent 843374f270
commit b3e508d7a6
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -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;
}