[NFC] Rename RAII ExpressionEvaluationContext variable from Unevaluated to ConstantEvaluated when parsing a constant expression.

This renaming makes it consistent with the context it actually sets: Sema::ConstantEvaluated.

llvm-svn: 291525
This commit is contained in:
Faisal Vali 2017-01-10 01:29:41 +00:00
parent feb6629d6d
commit e1403990b7
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ ExprResult Parser::ParseConstantExpression(TypeCastState isTypeCast) {
// An expression is potentially evaluated unless it appears where an // An expression is potentially evaluated unless it appears where an
// integral constant expression is required (see 5.19) [...]. // integral constant expression is required (see 5.19) [...].
// C++98 and C++11 have no such rule, but this is only a defect in C++98. // C++98 and C++11 have no such rule, but this is only a defect in C++98.
EnterExpressionEvaluationContext Unevaluated(Actions, EnterExpressionEvaluationContext ConstantEvaluated(Actions,
Sema::ConstantEvaluated); Sema::ConstantEvaluated);
ExprResult LHS(ParseCastExpression(false, false, isTypeCast)); ExprResult LHS(ParseCastExpression(false, false, isTypeCast));