diff options
author | mingchuan <mingc@skymizer.com> | 2018-05-14 11:18:01 +0800 |
---|---|---|
committer | mingchuan <mingc@skymizer.com> | 2018-05-14 11:30:18 +0800 |
commit | c4ac825324917e7dda91211cd41431b827c61b2d (patch) | |
tree | 6b8d96350723d9dcacc556067763e78f643cd146 /libjulia | |
parent | 85d417a8c22ba269629906b8e81b415241cf99bf (diff) | |
download | dexon-solidity-c4ac825324917e7dda91211cd41431b827c61b2d.tar.gz dexon-solidity-c4ac825324917e7dda91211cd41431b827c61b2d.tar.zst dexon-solidity-c4ac825324917e7dda91211cd41431b827c61b2d.zip |
Fix wrong template parameter passed to boost::get
Diffstat (limited to 'libjulia')
-rw-r--r-- | libjulia/optimiser/FullInliner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libjulia/optimiser/FullInliner.cpp b/libjulia/optimiser/FullInliner.cpp index e78f4eb0..e8776e23 100644 --- a/libjulia/optimiser/FullInliner.cpp +++ b/libjulia/optimiser/FullInliner.cpp @@ -168,10 +168,10 @@ void InlineModifier::visit(Statement& _statement) // Replace pop(0) expression statemets (and others) by empty blocks. if (_statement.type() == typeid(ExpressionStatement)) { - ExpressionStatement& expSt = boost::get<ExpressionStatement&>(_statement); + ExpressionStatement& expSt = boost::get<ExpressionStatement>(_statement); if (expSt.expression.type() == typeid(FunctionalInstruction)) { - FunctionalInstruction& funInstr = boost::get<FunctionalInstruction&>(expSt.expression); + FunctionalInstruction& funInstr = boost::get<FunctionalInstruction>(expSt.expression); if (funInstr.instruction == solidity::Instruction::POP) if (MovableChecker(funInstr.arguments.at(0)).movable()) _statement = Block{expSt.location, {}}; |