[clang] [CIR] Add support for derived class declarations (PR #142823)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 4 14:34:37 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");
+ }
----------------
andykaylor wrote:
I thought it would be better to fall through. The result won't be correct, but it will be more likely to allow compilation to continue than if we return here.
https://github.com/llvm/llvm-project/pull/142823
More information about the cfe-commits
mailing list