[CIR] Fix NYI AAPCS bit-fields by skipping unsupported case (#145560)

This PR addresses the error mentioned in
https://github.com/llvm/llvm-project/pull/145067#issuecomment-3001104015,
which occurs on ARM when handling an unsupported bit-field case. The
patch removes the error and replaces it with an assert, marking the
missing feature.
This commit is contained in:
Andres-Salamanca
2025-06-24 14:03:17 -05:00
committed by GitHub
parent ce4d214947
commit 280f60ed6d

View File

@@ -781,10 +781,7 @@ void CIRRecordLowering::computeVolatileBitfields() {
!cirGenTypes.getCGModule().getCodeGenOpts().AAPCSBitfieldWidth)
return;
for ([[maybe_unused]] auto &I : bitFields) {
assert(!cir::MissingFeatures::armComputeVolatileBitfields());
cirGenTypes.getCGModule().errorNYI("NYI AAPCS bit-fields");
}
assert(!cir::MissingFeatures::armComputeVolatileBitfields());
}
void CIRRecordLowering::accumulateBases(const CXXRecordDecl *cxxRecordDecl) {