aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-02-15 07:11:51 +0800
committerChristian <c@ethdev.com>2015-02-17 02:25:27 +0800
commit1f6e3651362bdcdaa39773156875c36053d5f6be (patch)
treecf41f43c2b4e46b1859654ad9884e64f89d36015 /ExpressionCompiler.cpp
parentf7ba85e0ecb6f690d62bcf66e0f0525f2ed97337 (diff)
downloaddexon-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.cpp7
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,