================ @@ -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 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
