aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-05-14 18:13:45 +0800
committerGitHub <noreply@github.com>2018-05-14 18:13:45 +0800
commitb5354f1e870f8a332372549366cd6676c0310932 (patch)
tree430ffa49effc34b9983d2cfc3a790c4694740fcd
parent7a669b39ed538c0b3c4e1aea049ca921e9c4a5a5 (diff)
parentc4ac825324917e7dda91211cd41431b827c61b2d (diff)
downloaddexon-solidity-b5354f1e870f8a332372549366cd6676c0310932.tar
dexon-solidity-b5354f1e870f8a332372549366cd6676c0310932.tar.gz
dexon-solidity-b5354f1e870f8a332372549366cd6676c0310932.tar.bz2
dexon-solidity-b5354f1e870f8a332372549366cd6676c0310932.tar.lz
dexon-solidity-b5354f1e870f8a332372549366cd6676c0310932.tar.xz
dexon-solidity-b5354f1e870f8a332372549366cd6676c0310932.tar.zst
dexon-solidity-b5354f1e870f8a332372549366cd6676c0310932.zip
Merge pull request #4127 from sifmelcara/fix/boost-get-check
Fix wrong template parameter passed to boost::get
-rw-r--r--libjulia/optimiser/FullInliner.cpp4
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, {}};