[clang] [CIR] Add support for derived class declarations (PR #142823)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 5 06:26:55 PDT 2025


================
@@ -415,3 +456,38 @@ void CIRRecordLowering::lowerUnion() {
   if (layoutSize % getAlignment(storageType))
     packed = true;
 }
+
+void CIRRecordLowering::accumulateBases(const CXXRecordDecl *cxxRecordDecl) {
+  // If we've got a primary virtual base, we need to add it with the bases.
+  if (astRecordLayout.isPrimaryBaseVirtual()) {
+    cirGenTypes.getCGModule().errorNYI(recordDecl->getSourceRange(),
+                                       "accumulateBases: primary virtual base");
+  }
----------------
erichkeane wrote:

I guess that makes sense, sgtm.

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


More information about the cfe-commits mailing list