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 90929a2 commit fe5309dCopy full SHA for fe5309d
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