[llvm] [IR] Use alloc markers for operator delete variants (PR #138261)
Marc Auberer via llvm-commits
llvm-commits at lists.llvm.org
Thu May 8 00:52:18 PDT 2025
marcauberer wrote:
Heads up: Our malfunction tests revealed another problem with this:
(Some of the) child classes implement a custom `operator new` and `operator delete`, which in turn call their respective counterparts in `User`. Until now, in those child classes `operator new(Size)` delegates to `User::operator new(Size, AllocMarker)`, but `operator delete(void*)` delegates to `User::operator delete(void*)`, which is a mismatch and does not work in the scenario, where the constructor throws.
I will investigate further, but this blocks the merge for now.
https://github.com/llvm/llvm-project/pull/138261
More information about the llvm-commits
mailing list