aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParseStmt.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-29 17:29:28 +0000
committerChris Lattner <sabre@nondot.org>2009-03-29 17:29:28 +0000
commit4dca69b3f8180bdfa0287399c89e0594080bae66 (patch)
tree38f2a1938fd3f6bec03773925b78c4bdf1a6c4d7 /lib/Parse/ParseStmt.cpp
parentcd1477562e7cf03279850885583d615e1f631dd4 (diff)
minor simplification
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseStmt.cpp')
-rw-r--r--lib/Parse/ParseStmt.cpp5
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);