[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user