[clang] [CIR] Add support for array cleanups (PR #150499)
Sirui Mu via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 25 09:06:45 PDT 2025
================
@@ -2272,6 +2272,23 @@ def CIR_ArrayCtor : CIR_ArrayInitDestroy<"array.ctor"> {
}];
}
+def CIR_ArrayDtor : CIR_ArrayInitDestroy<"array.dtor"> {
+ let summary = "Destroy array elements with C++ dtors";
+ let description = [{
+ Destroy each array element using the same C++ destructor. This
+ operation has one region, with one single block. The block has an
+ incoming argument for the current array index to initialize.
----------------
Lancern wrote:
```suggestion
incoming argument for the current array element to destruct.
```
https://github.com/llvm/llvm-project/pull/150499
More information about the cfe-commits
mailing list