diff options
author | Steve Naroff <snaroff@apple.com> | 2008-01-31 18:29:10 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-01-31 18:29:10 +0000 |
commit | d1a7cf8c922ae97cd70d784553c5b7566b5c5e7b (patch) | |
tree | 0e24454fe0c76808fd88ec570f1cd533ae1931c5 | |
parent | 0e82d724eed383f84abe2a69d050c6279e5d00a3 (diff) |
Fix http://llvm.org/bugs/show_bug.cgi?id=1967.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46616 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Parse/ParseStmt.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Parse/ParseStmt.cpp b/Parse/ParseStmt.cpp index 1eac2549d7..8559a3dd48 100644 --- a/Parse/ParseStmt.cpp +++ b/Parse/ParseStmt.cpp @@ -472,7 +472,7 @@ Parser::StmtResult Parser::ParseCompoundStatementBody(bool isStmtExpr) { // 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 @@ Parser::StmtResult Parser::ParseIfStatement() { if (ElseStmt.isInvalid) ElseStmt = Actions.ActOnNullStmt(ElseStmtLoc); - - return Actions.ActOnIfStmt(IfLoc, CondExp.Val, ThenStmt.Val, ElseLoc, ElseStmt.Val); } |