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 fb2c761 commit 430c037Copy full SHA for 430c037
clang/lib/Sema/SemaDecl.cpp
@@ -18636,8 +18636,7 @@ ExprResult Sema::VerifyBitField(SourceLocation FieldLoc,
18636
<< FieldName << FieldTy << BitWidth->getSourceRange();
18637
return Diag(FieldLoc, diag::err_not_integral_type_anon_bitfield)
18638
<< FieldTy << BitWidth->getSourceRange();
18639
- } else if (DiagnoseUnexpandedParameterPack(const_cast<Expr *>(BitWidth),
18640
- UPPC_BitFieldWidth))
+ } else if (DiagnoseUnexpandedParameterPack(BitWidth, UPPC_BitFieldWidth))
18641
return ExprError();
18642
18643
// If the bit-width is type- or value-dependent, don't try to check
0 commit comments