[clang] [Clang] More aggressively mark this* dead_on_return in destructors (PR #183347)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 1 09:50:31 PDT 2026


efriedma-quic wrote:

Do you have a standard reference for the interaction with operator delete?  My intuition would be that the lifetime of the object ends after the destructor runs... and operator delete runs after that, so the object is gone at that point.  The "deleting destructor" is an ABI thing which isn't mentioned in the standard.

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


More information about the cfe-commits mailing list