[PATCH] Use auto_vec in ssa_equiv_stack.
Thu Jun 10 14:54:21 GMT 2021
On 6/10/2021 2:46 AM, Aldy Hernandez via Gcc-patches wrote:
> There is a mismatch between the new and the delete for the
> ssa_equiv_stack class. The correct idiom should have been delete.
> It has been pointed out that perhaps a better alternative is to use
> an auto_vec which does everything automatically. Plus, it is more
> consistent with m_stack which is already an auto_vec.
> This patch fixes the issue in PR100984.
> Tested on x86-64 Linux.
> PR tree-optimization/100984
> * gimple-ssa-evrp.c (ssa_equiv_stack::~ssa_equiv_stack):
ChangeLog entry got truncated.
Otherwise, LGTM. Getting rid of manual memory management is a win in my
More information about the Gcc-patches