Author: lattner
Date: Sun Jan  4 17:46:59 2009
New Revision: 61654

URL: http://llvm.org/viewvc/llvm-project?rev=61654&view=rev
Log:
code simplification


Modified:
    cfe/trunk/lib/Parse/ParseExpr.cpp

Modified: cfe/trunk/lib/Parse/ParseExpr.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseExpr.cpp?rev=61654&r1=61653&r2=61654&view=diff

==============================================================================
--- cfe/trunk/lib/Parse/ParseExpr.cpp (original)
+++ cfe/trunk/lib/Parse/ParseExpr.cpp Sun Jan  4 17:46:59 2009
@@ -479,11 +479,8 @@
     // 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);
     }
 


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to