mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Reset Yul string repository before each compilation.
This commit is contained in:
committed by
chriseth
parent
b95eebee1c
commit
dbae0fa939
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user