Reset Yul string repository before each compilation.

This commit is contained in:
Bhargava Shastry
2019-05-28 13:12:39 +02:00
committed by chriseth
parent b95eebee1c
commit dbae0fa939
19 changed files with 89 additions and 30 deletions
+1 -2
View File
@@ -56,8 +56,7 @@ void SSAValueTracker::setValue(YulString _name, Expression const* _value)
OptimizerException,
"Source needs to be disambiguated."
);
static Expression const zero{Literal{{}, LiteralKind::Number, YulString{"0"}, {}}};
if (!_value)
_value = &zero;
_value = &m_zero;
m_values[_name] = _value;
}