diff --git a/clang/Parse/ParseStmt.cpp b/clang/Parse/ParseStmt.cpp index 1eac2549d766..8559a3dd48ae 100644 --- a/clang/Parse/ParseStmt.cpp +++ b/clang/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); }