[clang] [Clang] Mark this pointer in destructors dead_on_return (PR #166276)

Aiden Grossman via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 2 12:23:48 PST 2025


================
@@ -2800,6 +2801,15 @@ void CodeGenModule::ConstructAttributeList(StringRef Name,
             .getAsAlign();
     Attrs.addAlignmentAttr(Alignment);
 
+    if (isa_and_nonnull<CXXDestructorDecl>(
----------------
boomanaiden154 wrote:

Done. Ended up using `dyn_cast_if_present`.

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


More information about the cfe-commits mailing list