Skip to content

Commit 280f60e

Browse files
[CIR] Fix NYI AAPCS bit-fields by skipping unsupported case (#145560)
This PR addresses the error mentioned in #145067 (comment), 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.
1 parent ce4d214 commit 280f60e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clang/lib/CIR/CodeGen/CIRGenRecordLayoutBuilder.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -781,10 +781,7 @@ void CIRRecordLowering::computeVolatileBitfields() {
781781
!cirGenTypes.getCGModule().getCodeGenOpts().AAPCSBitfieldWidth)
782782
return;
783783

784-
for ([[maybe_unused]] auto &I : bitFields) {
785-
assert(!cir::MissingFeatures::armComputeVolatileBitfields());
786-
cirGenTypes.getCGModule().errorNYI("NYI AAPCS bit-fields");
787-
}
784+
assert(!cir::MissingFeatures::armComputeVolatileBitfields());
788785
}
789786

790787
void CIRRecordLowering::accumulateBases(const CXXRecordDecl *cxxRecordDecl) {

0 commit comments

Comments
 (0)