We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ac6c7c commit ddddc88Copy full SHA for ddddc88
lib/Parse/ParseStmt.cpp
@@ -1164,7 +1164,7 @@ ParserResult<Stmt> Parser::parseStmtGuard() {
1164
// then the parser is hopelessly lost - just give up instead of spewing.
1165
if (parseToken(tok::kw_else, diag::expected_else_after_guard) &&
1166
Tok.isNot(tok::l_brace))
1167
- return makeParserResult<Stmt>(Status, nullptr);
+ return makeParserError();
1168
1169
// Before parsing the body, disable all of the bound variables so that they
1170
// cannot be used unbound.
0 commit comments