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)
|
||||
if (canBeFreelyGenerated(slot))
|
||||
{
|
||||
firstDupOffset = offset;
|
||||
|
||||
}
|
||||
else if (auto dupOffset = util::findOffset(_stack | ranges::views::take(offset), slot))
|
||||
{
|
||||
if (_stack.size() - *dupOffset <= 16)
|
||||
firstDupOffset = offset;
|
||||
}
|
||||
}
|
||||
while (firstDupOffset);
|
||||
return _stack;
|
||||
|
Loading…
Reference in New Issue
Block a user