From: Chris Lattner Date: Sun, 4 Jan 2009 23:46:59 +0000 (+0000) Subject: code simplification X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e26ff02654971074a377ac6b922bdf3bb0f88c69;p=clang code simplification git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61654 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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); }