diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-12-05 21:44:20 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-12-05 22:52:11 +0800 |
commit | 745eefa36f9bc04c91cb28e81bd16f8d01a11c7c (patch) | |
tree | f6a3497b5355de175f6535c14c1996052654ce1e /libjulia/backends | |
parent | a08d853bbb0d5f052cc264a84340bde577f54c4e (diff) | |
download | dexon-solidity-745eefa36f9bc04c91cb28e81bd16f8d01a11c7c.tar.gz dexon-solidity-745eefa36f9bc04c91cb28e81bd16f8d01a11c7c.tar.zst dexon-solidity-745eefa36f9bc04c91cb28e81bd16f8d01a11c7c.zip |
Split Instruction and FunctionalInstruction in Julia
Diffstat (limited to 'libjulia/backends')
-rw-r--r-- | libjulia/backends/evm/EVMCodeTransform.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libjulia/backends/evm/EVMCodeTransform.cpp b/libjulia/backends/evm/EVMCodeTransform.cpp index 733e39e9..f92939be 100644 --- a/libjulia/backends/evm/EVMCodeTransform.cpp +++ b/libjulia/backends/evm/EVMCodeTransform.cpp @@ -125,11 +125,11 @@ void CodeTransform::operator()(FunctionCall const& _call) void CodeTransform::operator()(FunctionalInstruction const& _instruction) { if (m_evm15 && ( - _instruction.instruction.instruction == solidity::Instruction::JUMP || - _instruction.instruction.instruction == solidity::Instruction::JUMPI + _instruction.instruction == solidity::Instruction::JUMP || + _instruction.instruction == solidity::Instruction::JUMPI )) { - bool const isJumpI = _instruction.instruction.instruction == solidity::Instruction::JUMPI; + bool const isJumpI = _instruction.instruction == solidity::Instruction::JUMPI; if (isJumpI) { solAssert(_instruction.arguments.size() == 2, ""); @@ -150,7 +150,8 @@ void CodeTransform::operator()(FunctionalInstruction const& _instruction) { for (auto const& arg: _instruction.arguments | boost::adaptors::reversed) visitExpression(arg); - (*this)(_instruction.instruction); + m_assembly.setSourceLocation(_instruction.location); + m_assembly.appendInstruction(_instruction.instruction); } checkStackHeight(&_instruction); } |