================
@@ -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));
----------------
efriedma-quic wrote:

I'm having trouble following what you're doing in CodeGen.  I really don't want 
to have two independent codepaths for emitting vector deleting dtors, depending 
on whether a definition is visible.

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