aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/ContractCompiler.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-09-27 20:04:37 +0800
committerGitHub <noreply@github.com>2017-09-27 20:04:37 +0800
commit3f783c8dad7a143d364f75ddac839aac2eeece1a (patch)
tree9df24003560a05a73f1cdb1f2c6a2c28105fb669 /libsolidity/codegen/ContractCompiler.cpp
parenta27b23bacb60a6902547fb99b9f7a2df8bb014cd (diff)
parent204214f0700179e3d8fa97c77d4f92acd349f015 (diff)
downloaddexon-solidity-3f783c8dad7a143d364f75ddac839aac2eeece1a.tar
dexon-solidity-3f783c8dad7a143d364f75ddac839aac2eeece1a.tar.gz
dexon-solidity-3f783c8dad7a143d364f75ddac839aac2eeece1a.tar.bz2
dexon-solidity-3f783c8dad7a143d364f75ddac839aac2eeece1a.tar.lz
dexon-solidity-3f783c8dad7a143d364f75ddac839aac2eeece1a.tar.xz
dexon-solidity-3f783c8dad7a143d364f75ddac839aac2eeece1a.tar.zst
dexon-solidity-3f783c8dad7a143d364f75ddac839aac2eeece1a.zip
Merge pull request #2975 from ethereum/encode-memory
Split encodeToMemory into packedEncode and abiEncode
Diffstat (limited to 'libsolidity/codegen/ContractCompiler.cpp')
-rw-r--r--libsolidity/codegen/ContractCompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp
index 92782b8d..429db532 100644
--- a/libsolidity/codegen/ContractCompiler.cpp
+++ b/libsolidity/codegen/ContractCompiler.cpp
@@ -421,7 +421,7 @@ void ContractCompiler::appendReturnValuePacker(TypePointers const& _typeParamete
utils.fetchFreeMemoryPointer();
//@todo optimization: if we return a single memory array, there should be enough space before
// its data to add the needed parts and we avoid a memory copy.
- utils.encodeToMemory(_typeParameters, _typeParameters, true, false, _isLibrary);
+ utils.abiEncode(_typeParameters, _typeParameters, _isLibrary);
utils.toSizeAfterFreeMemoryPointer();
m_context << Instruction::RETURN;
}