Timm =?utf-8?q?Bäder?= <[email protected]>,
Timm =?utf-8?q?Bäder?= <[email protected]>,
Timm =?utf-8?q?Bäder?= <[email protected]>,
Timm =?utf-8?q?Bäder?= <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>


================
@@ -7098,6 +7119,16 @@ bool Compiler<Emitter>::compileDestructor(const 
CXXDestructorDecl *Dtor) {
       return false;
   }
 
+  for (const Record::Base &Base : llvm::reverse(R->virtual_bases())) {
+    if (Base.R->hasTrivialDtor())
+      continue;
+    if (!this->emitGetPtrVirtBase(cast<CXXRecordDecl>(Base.R->getDecl()),
+                                  SourceInfo{}))
+      return false;
+    if (!this->emitRecordDestructionPop(Base.R, {}))
+      return false;
+  }
----------------
tbaederr wrote:

Added code to ignore the virtual base class dtor calls conditionally.

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

Reply via email to