================
@@ -1201,6 +1202,10 @@ void CodeGenFunction::EmitNewArrayInitializer(
     EmitCXXAggrConstructorCall(Ctor, NumElements, CurPtr, CCE,
                                /*NewPointerIsChecked*/ true,
                                CCE->requiresZeroInitialization());
+    if (getContext().classNeedsVectorDeletingDestructor(Ctor->getParent())) {
+      CXXDestructorDecl *Dtor = Ctor->getParent()->getDestructor();
+      CGM.EmitGlobal(GlobalDecl(Dtor, Dtor_VectorDeleting));
----------------
Fznamznon wrote:

https://github.com/llvm/llvm-project/pull/185653/changes/46dc753bd6cf3a6a041830677f23a1a5b7aa45ba
 will just always add a deferred decl to emit for vector deleting destructors.

https://github.com/llvm/llvm-project/pull/185653
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to