mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixup! coding style from review suggestion.
This commit is contained in:
parent
556bd9adfc
commit
3bfd437ba7
@ -541,15 +541,10 @@ Stack StackLayoutGenerator::compressStack(Stack _stack)
|
|||||||
}
|
}
|
||||||
for (auto&& [offset, slot]: _stack | ranges::views::enumerate)
|
for (auto&& [offset, slot]: _stack | ranges::views::enumerate)
|
||||||
if (canBeFreelyGenerated(slot))
|
if (canBeFreelyGenerated(slot))
|
||||||
{
|
|
||||||
firstDupOffset = offset;
|
firstDupOffset = offset;
|
||||||
|
|
||||||
}
|
|
||||||
else if (auto dupOffset = util::findOffset(_stack | ranges::views::take(offset), slot))
|
else if (auto dupOffset = util::findOffset(_stack | ranges::views::take(offset), slot))
|
||||||
{
|
|
||||||
if (_stack.size() - *dupOffset <= 16)
|
if (_stack.size() - *dupOffset <= 16)
|
||||||
firstDupOffset = offset;
|
firstDupOffset = offset;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
while (firstDupOffset);
|
while (firstDupOffset);
|
||||||
return _stack;
|
return _stack;
|
||||||
|
Loading…
Reference in New Issue
Block a user