aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/CompilerContext.cpp
diff options
context:
space:
mode:
authorValentin Wüstholz <wuestholz@gmail.com>2017-01-23 17:46:50 +0800
committerchriseth <c@ethdev.com>2017-01-26 23:39:07 +0800
commit5b7cc018f0b256fb42f7bee38ad8d1ec4e2ec634 (patch)
tree95f65ad06ee940ad3db7a73d6c4cb29c603cbe3c /libsolidity/codegen/CompilerContext.cpp
parent9bcbd93ac59a19320fd56e27c58a6283f2450666 (diff)
downloaddexon-solidity-5b7cc018f0b256fb42f7bee38ad8d1ec4e2ec634.tar.gz
dexon-solidity-5b7cc018f0b256fb42f7bee38ad8d1ec4e2ec634.tar.zst
dexon-solidity-5b7cc018f0b256fb42f7bee38ad8d1ec4e2ec634.zip
Address feedback from code review.
Diffstat (limited to 'libsolidity/codegen/CompilerContext.cpp')
-rw-r--r--libsolidity/codegen/CompilerContext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/codegen/CompilerContext.cpp b/libsolidity/codegen/CompilerContext.cpp
index 45450350..3bb6c953 100644
--- a/libsolidity/codegen/CompilerContext.cpp
+++ b/libsolidity/codegen/CompilerContext.cpp
@@ -222,9 +222,9 @@ CompilerContext& CompilerContext::appendInvalid()
CompilerContext& CompilerContext::appendConditionalInvalid()
{
- eth::AssemblyItem falseTag = appendConditionalJump();
- eth::AssemblyItem endTag = appendJumpToNew();
- return *this << falseTag << Instruction::INVALID << endTag;
+ *this << Instruction::ISZERO;
+ eth::AssemblyItem afterTag = appendConditionalJump();
+ return *this << Instruction::INVALID << afterTag;
}
void CompilerContext::resetVisitedNodes(ASTNode const* _node)