diff options
-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); } |