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 /libsolidity/inlineasm/AsmParser.cpp | |
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 'libsolidity/inlineasm/AsmParser.cpp')
-rw-r--r-- | libsolidity/inlineasm/AsmParser.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libsolidity/inlineasm/AsmParser.cpp b/libsolidity/inlineasm/AsmParser.cpp index 1555804b..4f8802a0 100644 --- a/libsolidity/inlineasm/AsmParser.cpp +++ b/libsolidity/inlineasm/AsmParser.cpp @@ -448,10 +448,11 @@ assembly::Statement Parser::parseCall(assembly::Statement&& _instruction) if (_instruction.type() == typeid(Instruction)) { solAssert(!m_julia, "Instructions are invalid in JULIA"); + Instruction const& instruction = std::move(boost::get<Instruction>(_instruction)); FunctionalInstruction ret; - ret.instruction = std::move(boost::get<Instruction>(_instruction)); - ret.location = ret.instruction.location; - solidity::Instruction instr = ret.instruction.instruction; + ret.instruction = instruction.instruction; + ret.location = std::move(instruction.location); + solidity::Instruction instr = ret.instruction; InstructionInfo instrInfo = instructionInfo(instr); if (solidity::isDupInstruction(instr)) fatalParserError("DUPi instructions not allowed for functional notation"); |