aboutsummaryrefslogtreecommitdiffstats
path: root/ArrayUtils.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-06-24 23:25:36 +0800
committerchriseth <c@ethdev.com>2015-06-25 01:34:43 +0800
commite5ae5955b97009233fc46ac04070073750240698 (patch)
tree9781a740e3dc3f63110dece7127adcbdd3019380 /ArrayUtils.cpp
parent1add48a652ea695032d8c664fad3ea84afbfb9ea (diff)
downloaddexon-solidity-e5ae5955b97009233fc46ac04070073750240698.tar
dexon-solidity-e5ae5955b97009233fc46ac04070073750240698.tar.gz
dexon-solidity-e5ae5955b97009233fc46ac04070073750240698.tar.bz2
dexon-solidity-e5ae5955b97009233fc46ac04070073750240698.tar.lz
dexon-solidity-e5ae5955b97009233fc46ac04070073750240698.tar.xz
dexon-solidity-e5ae5955b97009233fc46ac04070073750240698.tar.zst
dexon-solidity-e5ae5955b97009233fc46ac04070073750240698.zip
Initialisation of memory types.
Diffstat (limited to 'ArrayUtils.cpp')
-rw-r--r--ArrayUtils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ArrayUtils.cpp b/ArrayUtils.cpp
index a7cf4792..3be12af7 100644
--- a/ArrayUtils.cpp
+++ b/ArrayUtils.cpp
@@ -674,6 +674,8 @@ void ArrayUtils::accessIndex(ArrayType const& _arrayType) const
m_context << _arrayType.getBaseType()->getCalldataEncodedSize() << eth::Instruction::MUL;
}
m_context << eth::Instruction::ADD;
+ //@todo we should also load if it is a reference type of dynamic length
+ // but we should apply special logic if we load from calldata.
if (_arrayType.getBaseType()->isValueType())
CompilerUtils(m_context).loadFromMemoryDynamic(
*_arrayType.getBaseType(),