mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow msize optimization only if it is not present.
This commit is contained in:
@@ -43,7 +43,7 @@ void ExpressionSimplifier::visit(Expression& _expression)
|
||||
// so if the value of the variable is not movable, the expression that references
|
||||
// the variable still is.
|
||||
|
||||
if (match->removesNonConstants && !MovableChecker(m_dialect, _expression).movable())
|
||||
if (match->removesNonConstants && !SideEffectsCollector(m_dialect, _expression).movable())
|
||||
return;
|
||||
_expression = match->action().toExpression(locationOf(_expression));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user