[clang] [clang][win] MSVC-compat: Use `__global_delete` wrapper in deleting destructors instead of directly referencing `::operator delete` (PR #188372)

Daniel Paoliello via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 2 09:30:19 PDT 2026


dpaoliello wrote:

Update: I did some more research into this, and it turns out that `__global_delete` is actually a compiler-generated function, but it is ONLY emitted if there is actually a call to `::operator delete`.

https://github.com/llvm/llvm-project/pull/188372


More information about the cfe-commits mailing list