================ @@ -610,8 +610,26 @@ bool ConstStructBuilder::AppendBytes(CharUnits FieldOffsetInChars, } bool ConstStructBuilder::AppendBitField( - const FieldDecl *Field, uint64_t FieldOffset, llvm::ConstantInt *CI, + const FieldDecl *Field, uint64_t FieldOffset, llvm::Constant *C, bool AllowOverwrite) { + + llvm::ConstantInt *CI = nullptr; ---------------- rjmccall wrote:
```suggestion llvm::ConstantInt *CI = dyn_cast<llvm::ConstantInt>(C); ``` https://github.com/llvm/llvm-project/pull/91364 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits