mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Some well-formedness checks for the Yul AST.
This commit is contained in:
@@ -209,6 +209,7 @@ u256 Pattern::d() const
|
||||
{
|
||||
Literal const& literal = boost::get<Literal>(matchGroupValue());
|
||||
assertThrow(literal.kind == assembly::LiteralKind::Number, OptimizerException, "");
|
||||
assertThrow(isValidDecimal(literal.value) || isValidHex(literal.value), OptimizerException, "");
|
||||
return u256(literal.value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user