aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-02-10 21:32:36 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-02-10 21:32:36 +0800
commit8a3d4a0500e98dbca83c0217d141fcb4860986e3 (patch)
tree888898f6e5b70015f47090e1dc649bf82a641deb /libsolidity
parent39cd2214f2161d2e09ab0de21a64f6dcdb851b13 (diff)
downloaddexon-solidity-8a3d4a0500e98dbca83c0217d141fcb4860986e3.tar
dexon-solidity-8a3d4a0500e98dbca83c0217d141fcb4860986e3.tar.gz
dexon-solidity-8a3d4a0500e98dbca83c0217d141fcb4860986e3.tar.bz2
dexon-solidity-8a3d4a0500e98dbca83c0217d141fcb4860986e3.tar.lz
dexon-solidity-8a3d4a0500e98dbca83c0217d141fcb4860986e3.tar.xz
dexon-solidity-8a3d4a0500e98dbca83c0217d141fcb4860986e3.tar.zst
dexon-solidity-8a3d4a0500e98dbca83c0217d141fcb4860986e3.zip
Cleanup is not needed for assert()
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/codegen/ExpressionCompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp
index a99e3d40..f69d61db 100644
--- a/libsolidity/codegen/ExpressionCompiler.cpp
+++ b/libsolidity/codegen/ExpressionCompiler.cpp
@@ -866,7 +866,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
case Location::Assert:
{
arguments.front()->accept(*this);
- utils().convertType(*arguments.front()->annotation().type, *function.parameterTypes().front(), true);
+ utils().convertType(*arguments.front()->annotation().type, *function.parameterTypes().front(), false);
m_context << Instruction::ISZERO;
m_context.appendConditionalJumpTo(m_context.errorTag());
break;