aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-08-12 21:54:17 +0800
committerchriseth <c@ethdev.com>2016-08-16 20:53:01 +0800
commitd731225d02c9b8d6dc9f2ba632923b765d0e111d (patch)
treec91454591ceb4a1329adafb1dc66d2500fe9f3c1 /libsolidity/codegen
parent034d436933806c204b84b0500e2116938cb6a030 (diff)
downloaddexon-solidity-d731225d02c9b8d6dc9f2ba632923b765d0e111d.tar.gz
dexon-solidity-d731225d02c9b8d6dc9f2ba632923b765d0e111d.tar.zst
dexon-solidity-d731225d02c9b8d6dc9f2ba632923b765d0e111d.zip
Actually better to return zero on error.
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r--libsolidity/codegen/ExpressionCompiler.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp
index 50148901..65326669 100644
--- a/libsolidity/codegen/ExpressionCompiler.cpp
+++ b/libsolidity/codegen/ExpressionCompiler.cpp
@@ -1571,8 +1571,6 @@ void ExpressionCompiler::appendExternalFunctionCall(
m_context << u256(32);
utils().fetchFreeMemoryPointer();
m_context << Instruction::SUB << Instruction::MLOAD;
- m_context << Instruction::DUP1 << Instruction::ISZERO;
- m_context.appendConditionalJumpTo(m_context.errorTag());
}
else if (!_functionType.returnParameterTypes().empty())
{