Change unreachable parser error to assertion in AsmParser

This commit is contained in:
Alex Beregszaszi 2019-02-26 16:51:07 +00:00
parent 6b12726f51
commit 9fc7706537

View File

@ -235,7 +235,7 @@ Case Parser::parseCase()
_case.value = make_unique<Literal>(boost::get<Literal>(std::move(literal)));
}
else
fatalParserError("Case or default case expected.");
solAssert(false, "Case or default case expected.");
_case.body = parseBlock();
_case.location.end = _case.body.location.end;
return _case;