PR c++/90171 - reorganize usual_deallocation_fn_p
authorJason Merrill <jason@redhat.com>
Tue, 7 May 2019 22:37:24 +0000 (18:37 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 7 May 2019 22:37:24 +0000 (18:37 -0400)
commitf7f36e3dc102d8ffb776f31abb48c33b1b830ebe
tree162c78828b3ac970b0fc97d39e22db261dd558c6
parent7f16ac89313843929da15e0d7dceefb85992da2e
PR c++/90171 - reorganize usual_deallocation_fn_p

When fixing 90171 it struck me as undesirable to have so many separate
functions that all needed to know about the definition of a usual
deallocation function.  So this patch condenses them into one.  I left
destroying_delete_p because it is used by other files as well.

* call.c (struct dealloc_info): New.
(usual_deallocation_fn_p): Take a dealloc_info*.
(aligned_deallocation_fn_p, sized_deallocation_fn_p): Remove.
(build_op_delete_call): Adjust.

From-SVN: r270986
gcc/cp/ChangeLog
gcc/cp/call.c