diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-08-16 19:34:46 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-08-16 19:34:46 +0000 |
| commit | 37779ade441f6a52a4d15cea6bbff1e74c268839 (patch) | |
| tree | d789ad1f56b1c334a2ef44e51c4ffd2e22824c0f /clang/lib/Parse/ParseExpr.cpp | |
| parent | 0fb45f60d5f2eea6ea1c97c96c7a8dd5b8741138 (diff) | |
| download | bcm5719-llvm-37779ade441f6a52a4d15cea6bbff1e74c268839.tar.gz bcm5719-llvm-37779ade441f6a52a4d15cea6bbff1e74c268839.zip | |
Move handling of postfix-expression suffixes out of ParseCXXThis and into ParseCastExpression.
No functionality change, this follows the convention of how postfix-expressions are handled.
llvm-svn: 54849
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseExpr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp index 2ecca33cf53..c8856198fd2 100644 --- a/clang/lib/Parse/ParseExpr.cpp +++ b/clang/lib/Parse/ParseExpr.cpp @@ -540,7 +540,9 @@ Parser::ExprResult Parser::ParseCastExpression(bool isUnaryExpression) { case tok::kw_static_cast: return ParseCXXCasts(); case tok::kw_this: - return ParseCXXThis(); + Res = ParseCXXThis(); + // This can be followed by postfix-expr pieces. + return ParsePostfixExpressionSuffix(Res); case tok::at: { SourceLocation AtLoc = ConsumeToken(); return ParseObjCAtExpression(AtLoc); |

