diff options
author | Christian <c@ethdev.com> | 2015-02-15 07:11:51 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-02-17 02:25:27 +0800 |
commit | 1f6e3651362bdcdaa39773156875c36053d5f6be (patch) | |
tree | cf41f43c2b4e46b1859654ad9884e64f89d36015 /ExpressionCompiler.cpp | |
parent | f7ba85e0ecb6f690d62bcf66e0f0525f2ed97337 (diff) | |
download | dexon-solidity-1f6e3651362bdcdaa39773156875c36053d5f6be.tar.gz dexon-solidity-1f6e3651362bdcdaa39773156875c36053d5f6be.tar.zst dexon-solidity-1f6e3651362bdcdaa39773156875c36053d5f6be.zip |
Move code to loadFromMemory.
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r-- | ExpressionCompiler.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp index 0f0e94f2..7128459a 100644 --- a/ExpressionCompiler.cpp +++ b/ExpressionCompiler.cpp @@ -885,11 +885,8 @@ void ExpressionCompiler::appendExternalFunctionCall(FunctionType const& _functio m_context << eth::Instruction::POP; m_context << eth::Instruction::POP; // pop contract address - if (retSize > 0) - { - bool const c_leftAligned = firstType->getCategory() == Type::Category::String; - CompilerUtils(m_context).loadFromMemory(0, retSize, c_leftAligned, false, true); - } + if (firstType) + CompilerUtils(m_context).loadFromMemory(0, *firstType, false, true); } void ExpressionCompiler::appendArgumentsCopyToMemory(vector<ASTPointer<Expression const>> const& _arguments, |