[clang] [CIR] Add support for partial array cleanup with ILE (PR #198000)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Mon May 18 10:01:31 PDT 2026
================
@@ -1035,7 +1031,11 @@ void CIRGenFunction::emitNewArrayInitializer(
const Expr *init = e->getInitializer();
Address endOfInit = Address::invalid();
QualType::DestructionKind dtorKind = elementType.isDestructedType();
- assert(!cir::MissingFeatures::cleanupDeactivationScope());
+ CleanupDeactivationScope deactivation(*this);
+
+ CharUnits elementSize = getContext().getTypeSizeInChars(elementType);
+ CharUnits elementAlign =
----------------
andykaylor wrote:
Yes, it can be. I was following classic codegen in putting it here, but classic codegen uses it in several other places as it constructs the construction loop here, whereas we put that off until a later lowering pass.
https://github.com/llvm/llvm-project/pull/198000
More information about the cfe-commits
mailing list