We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83b0195 commit 3cb7e31Copy full SHA for 3cb7e31
clang/lib/AST/Decl.cpp
@@ -4601,6 +4601,8 @@ void FieldDecl::setLazyInClassInitializer(LazyDeclStmtPtr NewInit) {
4601
4602
unsigned FieldDecl::getBitWidthValue() const {
4603
assert(isBitField() && "not a bitfield");
4604
+ assert(isa<ConstantExpr>(getBitWidth()));
4605
+ assert(cast<ConstantExpr>(getBitWidth())->hasAPValueResult());
4606
return cast<ConstantExpr>(getBitWidth())
4607
->getAPValueResult()
4608
.getInt()
0 commit comments