This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Remove also 2nd argument for unused delete operator (PR tree-optimization/91270).
On 7/30/19 1:35 PM, Marc Glisse wrote:
> + /* Some delete operators have size as 2nd argument. */
> Some delete operators have 3 arguments. From cp/decl.c:
> /* operator delete (void *, size_t, align_val_t); */
Yep, I know. The patch I installed expects at least 2 arguments:
+ /* Some delete operators have size as 2nd argument. */
+ if (is_delete_operator && gimple_call_num_args (stmt) >= 2)