Skip to content

Commit ddddc88

Browse files
committed
simplify some code.
Swift SVN r28249
1 parent 8ac6c7c commit ddddc88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Parse/ParseStmt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ ParserResult<Stmt> Parser::parseStmtGuard() {
11641164
// then the parser is hopelessly lost - just give up instead of spewing.
11651165
if (parseToken(tok::kw_else, diag::expected_else_after_guard) &&
11661166
Tok.isNot(tok::l_brace))
1167-
return makeParserResult<Stmt>(Status, nullptr);
1167+
return makeParserError();
11681168

11691169
// Before parsing the body, disable all of the bound variables so that they
11701170
// cannot be used unbound.

0 commit comments

Comments
 (0)