From: Steve Naroff Date: Thu, 31 Jan 2008 18:29:10 +0000 (+0000) Subject: Fix http://llvm.org/bugs/show_bug.cgi?id=1967. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1a7cf8c922ae97cd70d784553c5b7566b5c5e7b;p=clang 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 --- 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); }