From: Trevor Saunders Date: Wed, 13 Jul 2016 02:44:35 +0000 (+0000) Subject: tree-ssa-sccvn.c: use auto_vec for sccvn_dom_walker::cond_stack X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fcd215916e0991815853999267824defe1963379;p=gcc.git tree-ssa-sccvn.c: use auto_vec for sccvn_dom_walker::cond_stack gcc/ChangeLog: 2016-07-12 Trevor Saunders * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove. (sccvn_dom_walker): make cond_stack an auto_vec. From-SVN: r238284 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ebf64ca77f5..a488fd861dd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-07-12 Trevor Saunders + + * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove. + (sccvn_dom_walker): make cond_stack an auto_vec. + 2016-07-12 Trevor Saunders * ree.c (struct ext_state): Make type of members auto_vec. diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index e9e18526a0b..9bcbe52a298 100644 --- a/gcc/tree-ssa-sccvn.c +++ b/gcc/tree-ssa-sccvn.c @@ -4455,8 +4455,7 @@ class sccvn_dom_walker : public dom_walker { public: sccvn_dom_walker () - : dom_walker (CDI_DOMINATORS, true), fail (false), cond_stack (vNULL) {} - ~sccvn_dom_walker (); + : dom_walker (CDI_DOMINATORS, true), fail (false), cond_stack (0) {} virtual edge before_dom_children (basic_block); virtual void after_dom_children (basic_block); @@ -4467,15 +4466,10 @@ public: enum tree_code code, tree lhs, tree rhs, bool value); bool fail; - vec > > + auto_vec > > cond_stack; }; -sccvn_dom_walker::~sccvn_dom_walker () -{ - cond_stack.release (); -} - /* Record a temporary condition for the BB and its dominated blocks. */ void