[cfe-commits] r46616 - /cfe/trunk/Parse/ParseStmt.cpp
Steve Naroff
snaroff at apple.com
Thu Jan 31 10:29:11 PST 2008
Author: snaroff
Date: Thu Jan 31 12:29:10 2008
New Revision: 46616
URL: http://llvm.org/viewvc/llvm-project?rev=46616&view=rev
Log:
Fix http://llvm.org/bugs/show_bug.cgi?id=1967.
Modified:
cfe/trunk/Parse/ParseStmt.cpp
Modified: cfe/trunk/Parse/ParseStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Parse/ParseStmt.cpp?rev=46616&r1=46615&r2=46616&view=diff
==============================================================================
--- cfe/trunk/Parse/ParseStmt.cpp (original)
+++ cfe/trunk/Parse/ParseStmt.cpp Thu Jan 31 12:29:10 2008
@@ -472,7 +472,7 @@
// We broke out of the while loop because we found a '}' or EOF.
if (Tok.isNot(tok::r_brace)) {
Diag(Tok, diag::err_expected_rbrace);
- return 0;
+ return true;
}
SourceLocation RBraceLoc = ConsumeBrace();
@@ -565,8 +565,6 @@
if (ElseStmt.isInvalid)
ElseStmt = Actions.ActOnNullStmt(ElseStmtLoc);
-
-
return Actions.ActOnIfStmt(IfLoc, CondExp.Val, ThenStmt.Val,
ElseLoc, ElseStmt.Val);
}
More information about the cfe-commits
mailing list