llvm-svn: 46616
This commit is contained in:
parent
bf5435b91d
commit
e97c4ab30c
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue