diff options
Diffstat (limited to 'clang/lib/Parse/ParseExprCXX.cpp')
-rw-r--r-- | clang/lib/Parse/ParseExprCXX.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Parse/ParseExprCXX.cpp b/clang/lib/Parse/ParseExprCXX.cpp index a115f185deb..4bd4c6f7eb2 100644 --- a/clang/lib/Parse/ParseExprCXX.cpp +++ b/clang/lib/Parse/ParseExprCXX.cpp @@ -924,10 +924,10 @@ ExprResult Parser::ParseCXXTypeid() { // operand (Clause 5). // // Note that we can't tell whether the expression is an lvalue of a - // polymorphic class type until after we've parsed the expression, so - // we the expression is potentially potentially evaluated. - EnterExpressionEvaluationContext Unevaluated(Actions, - Sema::PotentiallyPotentiallyEvaluated); + // polymorphic class type until after we've parsed the expression; we + // speculatively assume the subexpression is unevaluated, and fix it up + // later. + EnterExpressionEvaluationContext Unevaluated(Actions, Sema::Unevaluated); Result = ParseExpression(); // Match the ')'. |