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