aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
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;