Author: Andres-Salamanca
Date: 2025-06-24T12:03:17-07:00
New Revision: 280f60ed6d99cda3a26138d6df103e6d2a58490a

URL: 
https://github.com/llvm/llvm-project/commit/280f60ed6d99cda3a26138d6df103e6d2a58490a
DIFF: 
https://github.com/llvm/llvm-project/commit/280f60ed6d99cda3a26138d6df103e6d2a58490a.diff

LOG: [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.

Added: 
    

Modified: 
    clang/lib/CIR/CodeGen/CIRGenRecordLayoutBuilder.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CIR/CodeGen/CIRGenRecordLayoutBuilder.cpp 
b/clang/lib/CIR/CodeGen/CIRGenRecordLayoutBuilder.cpp
index 31e0370da78ee..f17eb73a9f968 100644
--- a/clang/lib/CIR/CodeGen/CIRGenRecordLayoutBuilder.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenRecordLayoutBuilder.cpp
@@ -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) {


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to