Merge pull request #5593 from ethereum/issue-5384

Fix expression simplifier asserting on default values
This commit is contained in:
chriseth
2018-12-05 17:58:23 +01:00
committed by GitHub
2 changed files with 16 additions and 1 deletions
+2 -1
View File
@@ -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, "");