mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rename local variable.
This commit is contained in:
parent
984258dc64
commit
11e7c5e813
@ -40,15 +40,15 @@ using namespace solidity::yul;
|
|||||||
|
|
||||||
void UnusedAssignEliminator::run(OptimiserStepContext& _context, Block& _ast)
|
void UnusedAssignEliminator::run(OptimiserStepContext& _context, Block& _ast)
|
||||||
{
|
{
|
||||||
UnusedAssignEliminator rae{
|
UnusedAssignEliminator uae{
|
||||||
_context.dialect,
|
_context.dialect,
|
||||||
ControlFlowSideEffectsCollector{_context.dialect, _ast}.functionSideEffectsNamed()
|
ControlFlowSideEffectsCollector{_context.dialect, _ast}.functionSideEffectsNamed()
|
||||||
};
|
};
|
||||||
rae(_ast);
|
uae(_ast);
|
||||||
|
|
||||||
rae.m_storesToRemove += rae.m_allStores - rae.m_usedStores;
|
uae.m_storesToRemove += uae.m_allStores - uae.m_usedStores;
|
||||||
|
|
||||||
set<Statement const*> toRemove{rae.m_storesToRemove.begin(), rae.m_storesToRemove.end()};
|
set<Statement const*> toRemove{uae.m_storesToRemove.begin(), uae.m_storesToRemove.end()};
|
||||||
StatementRemover remover{toRemove};
|
StatementRemover remover{toRemove};
|
||||||
remover(_ast);
|
remover(_ast);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user