minor simplification

llvm-svn: 68011
This commit is contained in:
Chris Lattner 2009-03-29 17:29:28 +00:00
parent 32dc41c445
commit be36eb0570
1 changed files with 1 additions and 4 deletions

View 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);