[clang] [clang][bytecode] Support virtual bases in C++26 (PR #204289)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 19 11:04:56 PDT 2026


Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/204289 at github.com>


================
@@ -7094,10 +7112,31 @@ bool Compiler<Emitter>::compileDestructor(const CXXDestructorDecl *Dtor) {
       return false;
   }
 
+  if (R->getNumVirtualBases() > 0) {
+    LabelTy EndLabel = this->getLabel();
+    // If this is a base class, skip the virtual bases.
+    if (!this->emitIsBaseClass({}))
----------------
efriedma-quic wrote:

Do we need to do something similar for constructors?

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


More information about the cfe-commits mailing list