From: Martin Liska Date: Wed, 9 Dec 2015 09:38:00 +0000 (+0100) Subject: Fix memory leak in tree-if-conv.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2b04f0b7beb7d153e31fb956e4580dbf6c99c8c;p=gcc.git Fix memory leak in tree-if-conv.c * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec. From-SVN: r231447 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f465e22c675..bac6627f24f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-12-09 Martin Liska + + * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec. + 2015-12-09 Martin Liska PR ipa/68790 diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index 573937bf714..c85969565cf 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -2550,7 +2550,7 @@ ifcvt_local_dce (basic_block bb) gimple *stmt1; gimple *phi; gimple_stmt_iterator gsi; - vec worklist; + auto_vec worklist; enum gimple_code code; use_operand_p use_p; imm_use_iterator imm_iter;