]> granicus.if.org Git - clang/commitdiff
minor simplification
authorChris Lattner <sabre@nondot.org>
Sun, 29 Mar 2009 17:29:28 +0000 (17:29 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 29 Mar 2009 17:29:28 +0000 (17:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68011 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseStmt.cpp

index 3ca2f02b52bff2ea4532c25e3315413bbb92eea6..b11ffbe82e492af4edaf339788d5f2e7ddc72a30 100644 (file)
@@ -959,11 +959,8 @@ Parser::OwningStmtResult Parser::ParseForStatement() {
     }
 
     // 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);