This renaming makes it consistent with the context it actually sets: Sema::ConstantEvaluated.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291525
91177308-0d34-0410-b5e6-
96231b3b80d8
// An expression is potentially evaluated unless it appears where an
// 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.
- EnterExpressionEvaluationContext Unevaluated(Actions,
+ EnterExpressionEvaluationContext ConstantEvaluated(Actions,
Sema::ConstantEvaluated);
ExprResult LHS(ParseCastExpression(false, false, isTypeCast));