mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Change unreachable parser error to assertion in AsmParser
This commit is contained in:
parent
6b12726f51
commit
9fc7706537
@ -235,7 +235,7 @@ Case Parser::parseCase()
|
|||||||
_case.value = make_unique<Literal>(boost::get<Literal>(std::move(literal)));
|
_case.value = make_unique<Literal>(boost::get<Literal>(std::move(literal)));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fatalParserError("Case or default case expected.");
|
solAssert(false, "Case or default case expected.");
|
||||||
_case.body = parseBlock();
|
_case.body = parseBlock();
|
||||||
_case.location.end = _case.body.location.end;
|
_case.location.end = _case.body.location.end;
|
||||||
return _case;
|
return _case;
|
||||||
|
Loading…
Reference in New Issue
Block a user