Initialisation of memory types.

This commit is contained in:
chriseth
2015-06-24 19:34:43 +02:00
parent 1add48a652
commit e5ae5955b9
10 changed files with 110 additions and 17 deletions
+2
View File
@@ -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(),