Skip to content

Commit 2656fb3

Browse files
committed
[clang][NFC] Remove unused parameter from ParseConstantExpression
1 parent 5b6575d commit 2656fb3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/include/clang/Parse/Parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1763,7 +1763,7 @@ class Parser : public CodeCompletionHandler {
17631763
ExprResult ParseExpression(TypeCastState isTypeCast = NotTypeCast);
17641764
ExprResult ParseConstantExpressionInExprEvalContext(
17651765
TypeCastState isTypeCast = NotTypeCast);
1766-
ExprResult ParseConstantExpression(TypeCastState isTypeCast = NotTypeCast);
1766+
ExprResult ParseConstantExpression();
17671767
ExprResult ParseCaseExpression(SourceLocation CaseLoc);
17681768
ExprResult ParseConstraintExpression();
17691769
ExprResult

clang/lib/Parse/ParseExpr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,14 @@ Parser::ParseConstantExpressionInExprEvalContext(TypeCastState isTypeCast) {
208208
return Actions.ActOnConstantExpression(Res);
209209
}
210210

211-
ExprResult Parser::ParseConstantExpression(TypeCastState isTypeCast) {
211+
ExprResult Parser::ParseConstantExpression() {
212212
// C++03 [basic.def.odr]p2:
213213
// An expression is potentially evaluated unless it appears where an
214214
// integral constant expression is required (see 5.19) [...].
215215
// C++98 and C++11 have no such rule, but this is only a defect in C++98.
216216
EnterExpressionEvaluationContext ConstantEvaluated(
217217
Actions, Sema::ExpressionEvaluationContext::ConstantEvaluated);
218-
return ParseConstantExpressionInExprEvalContext(isTypeCast);
218+
return ParseConstantExpressionInExprEvalContext(NotTypeCast);
219219
}
220220

221221
ExprResult Parser::ParseCaseExpression(SourceLocation CaseLoc) {

0 commit comments

Comments
 (0)