Skip to content

Commit

Permalink
Fix wrong template parameter passed to boost::get
Browse files Browse the repository at this point in the history
  • Loading branch information
sifmelcara committed May 14, 2018
1 parent 85d417a commit c4ac825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libjulia/optimiser/FullInliner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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, {}};
Expand Down

0 comments on commit c4ac825

Please sign in to comment.