Fix memory leak in tree-if-conv.c

* tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.

From-SVN: r231447
This commit is contained in:
Martin Liska 2015-12-09 10:38:00 +01:00 committed by Martin Liska
parent b018757801
commit d2b04f0b7b
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2015-12-09 Martin Liska <mliska@suse.cz>
* tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
2015-12-09 Martin Liska <mliska@suse.cz>
PR ipa/68790

View file

@ -2550,7 +2550,7 @@ ifcvt_local_dce (basic_block bb)
gimple *stmt1;
gimple *phi;
gimple_stmt_iterator gsi;
vec<gimple *> worklist;
auto_vec<gimple *> worklist;
enum gimple_code code;
use_operand_p use_p;
imm_use_iterator imm_iter;