mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Enlarge storage references to two stack slots.
This commit is contained in:
@@ -644,6 +644,9 @@ unsigned ArrayType::getSizeOnStack() const
|
||||
if (m_location == Location::CallData)
|
||||
// offset [length] (stack top)
|
||||
return 1 + (isDynamicallySized() ? 1 : 0);
|
||||
else if (m_location == Location::Storage)
|
||||
// storage_key storage_offset
|
||||
return 2;
|
||||
else
|
||||
// offset
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user