diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-04 23:46:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-04 23:46:59 +0000 |
commit | e26ff02654971074a377ac6b922bdf3bb0f88c69 (patch) | |
tree | 071edf5dac3a36cafe8fa56efec3ec91b4368d80 | |
parent | 166a8fccc36e07a86b8a8cfbc76205c32cd671ff (diff) |
code simplification
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61654 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Parse/ParseExpr.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp index c5ed745d82..8770bc2864 100644 --- a/lib/Parse/ParseExpr.cpp +++ b/lib/Parse/ParseExpr.cpp @@ -479,11 +479,8 @@ Parser::OwningExprResult Parser::ParseCastExpression(bool isUnaryExpression) { // Turn a potentially qualified name into a annot_qualtypename or // annot_cxxscope if it would be valid. This handles things like x::y, etc. if (getLang().CPlusPlus) { - TryAnnotateTypeOrScopeToken(); - - // If TryAnnotateTypeOrScopeToken modified the current token, then tail - // recurse. - if (Tok.getKind() != tok::identifier) + // If TryAnnotateTypeOrScopeToken annotates the token, tail recurse. + if (TryAnnotateTypeOrScopeToken()) return ParseCastExpression(isUnaryExpression); } |