[clang] [CIR] Add support for derived class declarations (PR #142823)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 4 13:44:34 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:
```suggestion
return;
}
```
https://github.com/llvm/llvm-project/pull/142823
More information about the cfe-commits
mailing list