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:
parent
843374f270
commit
b3e508d7a6
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue