[cfe-commits] r68011 - /cfe/trunk/lib/Parse/ParseStmt.cpp

Chris Lattner sabre at nondot.org
Sun Mar 29 10:29:28 PDT 2009


Author: lattner
Date: Sun Mar 29 12:29:28 2009
New Revision: 68011

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

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

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

==============================================================================
--- cfe/trunk/lib/Parse/ParseStmt.cpp (original)
+++ cfe/trunk/lib/Parse/ParseStmt.cpp Sun Mar 29 12:29:28 2009
@@ -959,11 +959,8 @@
     }
 
     // Parse the third part of the for specifier.
-    if (Tok.is(tok::r_paren)) {  // for (...;...;)
-      // no third part.
-    } else {
+    if (Tok.isNot(tok::r_paren))    // for (...;...;)
       ThirdPart = ParseExpression();
-    }
   }
   // Match the ')'.
   SourceLocation RParenLoc = MatchRHSPunctuation(tok::r_paren, LParenLoc);





More information about the cfe-commits mailing list