Enlarge storage references to two stack slots.

This commit is contained in:
chriseth
2015-03-16 18:07:14 +01:00
parent c34e1da6db
commit fff3f98f58
9 changed files with 168 additions and 134 deletions
+3
View File
@@ -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;