Re: [PATCH] Use auto_vec in ssa_equiv_stack.

2021-06-10 Thread Jeff Law via Gcc-patches
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 auto

[PATCH] Use auto_vec in ssa_equiv_stack.

2021-06-10 Thread Aldy Hernandez via Gcc-patches
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 alr