mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix expression simplifier asserting on default values
This commit is contained in:
parent
5d31ad2daf
commit
54846ed0a7
@ -114,7 +114,8 @@ bool Pattern::matches(Expression const& _expr, map<YulString, Expression const*>
|
||||
{
|
||||
YulString varName = boost::get<Identifier>(_expr).name;
|
||||
if (_ssaValues.count(varName))
|
||||
expr = _ssaValues.at(varName);
|
||||
if (Expression const* new_expr = _ssaValues.at(varName))
|
||||
expr = new_expr;
|
||||
}
|
||||
assertThrow(expr, OptimizerException, "");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user