[clang] [CIR] Add support for delegating constructors (PR #143932)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 12 13:15:35 PDT 2025


================
@@ -267,23 +267,60 @@ class AggValueSlot {
   Address addr;
   clang::Qualifiers quals;
 
+  /// This is set to true if some external code is responsible for setting up a
+  /// destructor for the slot.  Otherwise the code which constructs it should
+  /// push the appropriate cleanup.
+  [[maybe_unused]] bool destructedFlag : 1;
----------------
andykaylor wrote:

Oh yeah, you've pointed that out in other places too. FWIW, classic codegen's version of this class does the same thing. I'll fix it there too.

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


More information about the cfe-commits mailing list