[clang] [MS][clang] Add support for vector deleting destructors (PR #126240)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 20 05:29:18 PST 2025


================
@@ -4053,6 +4063,19 @@ void MicrosoftCXXABI::emitCXXStructor(GlobalDecl GD) {
   if (GD.getDtorType() == Dtor_Base && !CGM.TryEmitBaseDestructorAsAlias(dtor))
     return;
 
+  if (GD.getDtorType() == Dtor_VectorDeleting &&
+      !CGM.classNeedsVectorDestructor(dtor->getParent())) {
+    // Create GlobalDecl objects with the correct type for the vector and scalar
+    // deleting destructors.
+    GlobalDecl VectorDtorGD(dtor, Dtor_VectorDeleting);
----------------
Fznamznon wrote:

Done.

https://github.com/llvm/llvm-project/pull/126240


More information about the cfe-commits mailing list