parent
32dc41c445
commit
be36eb0570
|
@ -959,11 +959,8 @@ Parser::OwningStmtResult Parser::ParseForStatement() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse the third part of the for specifier.
|
// Parse the third part of the for specifier.
|
||||||
if (Tok.is(tok::r_paren)) { // for (...;...;)
|
if (Tok.isNot(tok::r_paren)) // for (...;...;)
|
||||||
// no third part.
|
|
||||||
} else {
|
|
||||||
ThirdPart = ParseExpression();
|
ThirdPart = ParseExpression();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Match the ')'.
|
// Match the ')'.
|
||||||
SourceLocation RParenLoc = MatchRHSPunctuation(tok::r_paren, LParenLoc);
|
SourceLocation RParenLoc = MatchRHSPunctuation(tok::r_paren, LParenLoc);
|
||||||
|
|
Loading…
Reference in New Issue