llvm-svn: 46616
This commit is contained in:
Steve Naroff 2008-01-31 18:29:10 +00:00
parent bf5435b91d
commit e97c4ab30c
1 changed files with 1 additions and 3 deletions

View File

@ -472,7 +472,7 @@ Parser::StmtResult Parser::ParseCompoundStatementBody(bool isStmtExpr) {
// We broke out of the while loop because we found a '}' or EOF. // We broke out of the while loop because we found a '}' or EOF.
if (Tok.isNot(tok::r_brace)) { if (Tok.isNot(tok::r_brace)) {
Diag(Tok, diag::err_expected_rbrace); Diag(Tok, diag::err_expected_rbrace);
return 0; return true;
} }
SourceLocation RBraceLoc = ConsumeBrace(); SourceLocation RBraceLoc = ConsumeBrace();
@ -565,8 +565,6 @@ Parser::StmtResult Parser::ParseIfStatement() {
if (ElseStmt.isInvalid) if (ElseStmt.isInvalid)
ElseStmt = Actions.ActOnNullStmt(ElseStmtLoc); ElseStmt = Actions.ActOnNullStmt(ElseStmtLoc);
return Actions.ActOnIfStmt(IfLoc, CondExp.Val, ThenStmt.Val, return Actions.ActOnIfStmt(IfLoc, CondExp.Val, ThenStmt.Val,
ElseLoc, ElseStmt.Val); ElseLoc, ElseStmt.Val);
} }