mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Address feedback from code review.
This commit is contained in:
committed by
chriseth
parent
9bcbd93ac5
commit
5b7cc018f0
@@ -918,9 +918,9 @@ eth::AssemblyPointer ContractCompiler::cloneRuntime()
|
||||
a << Instruction::DELEGATECALL;
|
||||
//Propagate error condition (if DELEGATECALL pushes 0 on stack).
|
||||
a << Instruction::ISZERO;
|
||||
eth::AssemblyItem falseTag = a.appendJumpI();
|
||||
eth::AssemblyItem endTag = a.appendJump().tag();
|
||||
a << falseTag << Instruction::INVALID << endTag;
|
||||
a << Instruction::ISZERO;
|
||||
eth::AssemblyItem afterTag = a.appendJumpI();
|
||||
a << Instruction::INVALID << afterTag;
|
||||
//@todo adjust for larger return values, make this dynamic.
|
||||
a << u256(0x20) << u256(0) << Instruction::RETURN;
|
||||
return make_shared<eth::Assembly>(a);
|
||||
|
||||
Reference in New Issue
Block a user