diff options
author | chriseth <c@ethdev.com> | 2015-06-24 23:25:36 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-25 01:34:43 +0800 |
commit | e5ae5955b97009233fc46ac04070073750240698 (patch) | |
tree | 9781a740e3dc3f63110dece7127adcbdd3019380 /ArrayUtils.cpp | |
parent | 1add48a652ea695032d8c664fad3ea84afbfb9ea (diff) | |
download | dexon-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.cpp | 2 |
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(), |