[clang] [CIR] Implement partial array destroy handling (PR #190834)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 7 15:56:58 PDT 2026
================
@@ -4610,32 +4632,41 @@ def CIR_ArrayCtor : CIR_Op<"array.ctor"> {
Optional<CIR_AnyIntType>:$num_elements
);
- let regions = (region SizedRegion<1>:$body);
- let assemblyFormat = [{
- $addr (`,` $num_elements^)? `:` qualified(type($addr))
- (`,` type($num_elements)^)? $body attr-dict
- }];
+ let regions = (region SizedRegion<1>:$body, AnyRegion:$partial_dtor);
+ let hasCustomAssemblyFormat = 1;
----------------
andykaylor wrote:
I wasn't sure about this. I'd be happy to simplify it if I can. I'll try your suggestion.
https://github.com/llvm/llvm-project/pull/190834
More information about the cfe-commits
mailing list