Skip to content

Commit 430c037

Browse files
[Sema] Remove an unnecessary cast (NFC) (llvm#147154)
BitWidth is already of Expr *.
1 parent fb2c761 commit 430c037

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Sema/SemaDecl.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18636,8 +18636,7 @@ ExprResult Sema::VerifyBitField(SourceLocation FieldLoc,
1863618636
<< FieldName << FieldTy << BitWidth->getSourceRange();
1863718637
return Diag(FieldLoc, diag::err_not_integral_type_anon_bitfield)
1863818638
<< FieldTy << BitWidth->getSourceRange();
18639-
} else if (DiagnoseUnexpandedParameterPack(const_cast<Expr *>(BitWidth),
18640-
UPPC_BitFieldWidth))
18639+
} else if (DiagnoseUnexpandedParameterPack(BitWidth, UPPC_BitFieldWidth))
1864118640
return ExprError();
1864218641

1864318642
// If the bit-width is type- or value-dependent, don't try to check

0 commit comments

Comments
 (0)