mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix wrong template parameter passed to boost::get
This commit is contained in:
parent
85d417a8c2
commit
c4ac825324
@ -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, {}};
|
||||
|
Loading…
Reference in New Issue
Block a user