[clang] [CIR] Add support for array cleanups (PR #150499)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 25 06:21:16 PDT 2025
================
@@ -230,6 +240,17 @@ static void lowerArrayDtorCtorIntoLoop(cir::CIRBaseBuilderTy &builder,
op->erase();
}
+void LoweringPreparePass::lowerArrayDtor(ArrayDtor op) {
+ CIRBaseBuilderTy builder(getContext());
+ builder.setInsertionPointAfter(op.getOperation());
+
+ mlir::Type eltTy = op->getRegion(0).getArgument(0).getType();
----------------
xlauko wrote:
ArrayCtor asserts here `!cir::MissingFeatures::vlas()`, shouldn't it be asserted also here?
https://github.com/llvm/llvm-project/pull/150499
More information about the cfe-commits
mailing list