mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #10416 from ethereum/speedUpByMovingAssertion
Superspeed.
This commit is contained in:
commit
45307a24d6
@ -103,9 +103,9 @@ void CommonSubexpressionEliminator::visit(Expression& _e)
|
|||||||
for (auto const& [variable, value]: m_value)
|
for (auto const& [variable, value]: m_value)
|
||||||
{
|
{
|
||||||
assertThrow(value.value, OptimizerException, "");
|
assertThrow(value.value, OptimizerException, "");
|
||||||
assertThrow(inScope(variable), OptimizerException, "");
|
|
||||||
if (SyntacticallyEqual{}(_e, *value.value))
|
if (SyntacticallyEqual{}(_e, *value.value))
|
||||||
{
|
{
|
||||||
|
assertThrow(inScope(variable), OptimizerException, "");
|
||||||
_e = Identifier{locationOf(_e), variable};
|
_e = Identifier{locationOf(_e), variable};
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user