mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Exit StackToMemoryMover early, if there are no variables to be moved.
This commit is contained in:
parent
a59bf01ebd
commit
0b199f3372
@ -63,6 +63,12 @@ void StackToMemoryMover::run(
|
|||||||
Block& _block
|
Block& _block
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
if (!_numRequiredSlots)
|
||||||
|
{
|
||||||
|
yulAssert(_memorySlots.empty(), "");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
auto const* evmDialect = dynamic_cast<EVMDialect const*>(&_context.dialect);
|
auto const* evmDialect = dynamic_cast<EVMDialect const*>(&_context.dialect);
|
||||||
yulAssert(
|
yulAssert(
|
||||||
evmDialect && evmDialect->providesObjectAccess(),
|
evmDialect && evmDialect->providesObjectAccess(),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user