aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-03-12 01:09:35 +0800
committerchriseth <c@ethdev.com>2015-03-17 01:07:14 +0800
commitfff3f98f58345d45dcf518d7dccbfa0d0a4e67b7 (patch)
treefd00609ec95fd240a8a41efcd9461b60ea15b142 /Types.cpp
parentc34e1da6dbc8c66dcdfcb0f09ee0cf8815473124 (diff)
downloaddexon-solidity-fff3f98f58345d45dcf518d7dccbfa0d0a4e67b7.tar.gz
dexon-solidity-fff3f98f58345d45dcf518d7dccbfa0d0a4e67b7.tar.zst
dexon-solidity-fff3f98f58345d45dcf518d7dccbfa0d0a4e67b7.zip
Enlarge storage references to two stack slots.
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Types.cpp b/Types.cpp
index 70cbec5d..2764eb7b 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -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;