diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-01-20 01:26:23 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-01-20 01:26:23 +0000 |
commit | 456f01833b6a6356b200a06c5b2ab81ba706d03b (patch) | |
tree | 75464c03c9ee48fc1fc92abd16b32a844bae6ea7 /clang/lib/Parse | |
parent | 6561d15dcb514fee576b41264eff91315f1799fb (diff) | |
download | bcm5719-llvm-456f01833b6a6356b200a06c5b2ab81ba706d03b.tar.gz bcm5719-llvm-456f01833b6a6356b200a06c5b2ab81ba706d03b.zip |
Remove PotentiallyPotentiallyEvaluated, and replace it with a much simpler and less error-prone way of handling the relevant cases. Towards marking of whether a declaration is used more accurately.
llvm-svn: 148522
Diffstat (limited to 'clang/lib/Parse')
-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 ')'. |