[clang] [CIR] Add initial support for virtual base classes (PR #155534)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 27 09:18:47 PDT 2025


================
@@ -37,6 +37,12 @@ class CIRGenCXXABI {
 
   void setCXXABIThisValue(CIRGenFunction &cgf, mlir::Value thisPtr);
 
+  /// Emit the code to initialize hidden members required to handle virtual
+  /// inheritance, if needed by the ABI.
+  virtual void
+  initializeHiddenVirtualInheritanceMembers(CIRGenFunction &cgf,
+                                            const CXXRecordDecl *rd) {}
----------------
andykaylor wrote:

The MSCXXABI overrides this method, but all other targets use this default implementation.

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


More information about the cfe-commits mailing list