forked from OSchip/llvm-project
[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:
parent
feb6629d6d
commit
e1403990b7
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue