diff options
Diffstat (limited to 'lib/Parse/ParseStmt.cpp')
-rw-r--r-- | lib/Parse/ParseStmt.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Parse/ParseStmt.cpp b/lib/Parse/ParseStmt.cpp index 3ca2f02b52..b11ffbe82e 100644 --- a/lib/Parse/ParseStmt.cpp +++ b/lib/Parse/ParseStmt.cpp @@ -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); |