aboutsummaryrefslogtreecommitdiffstats
path: root/libjulia/optimiser
diff options
context:
space:
mode:
authorLeonardo Alt <leonardoaltt@gmail.com>2018-02-16 23:04:30 +0800
committerLeonardo Alt <leonardoaltt@gmail.com>2018-02-16 23:04:30 +0800
commitfa0ab6bb219def335b9b0bcf409eb35bbfa57346 (patch)
treee697b1ee53773cac2880474341fa44205608f229 /libjulia/optimiser
parentf4aa05f308ef6b738e94e400b1cfcfb49b3bf5d6 (diff)
downloaddexon-solidity-fa0ab6bb219def335b9b0bcf409eb35bbfa57346.tar.gz
dexon-solidity-fa0ab6bb219def335b9b0bcf409eb35bbfa57346.tar.zst
dexon-solidity-fa0ab6bb219def335b9b0bcf409eb35bbfa57346.zip
Fix compilation problem from issue 3530
Diffstat (limited to 'libjulia/optimiser')
-rw-r--r--libjulia/optimiser/SimplificationRules.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libjulia/optimiser/SimplificationRules.cpp b/libjulia/optimiser/SimplificationRules.cpp
index e5dbb059..070d5484 100644
--- a/libjulia/optimiser/SimplificationRules.cpp
+++ b/libjulia/optimiser/SimplificationRules.cpp
@@ -41,7 +41,7 @@ SimplificationRule<Pattern> const* SimplificationRules::findFirstMatch(Expressio
static SimplificationRules rules;
- FunctionalInstruction const& instruction = boost::get<FunctionalInstruction const&>(_expr);
+ FunctionalInstruction const& instruction = boost::get<FunctionalInstruction>(_expr);
for (auto const& rule: rules.m_rules[byte(instruction.instruction)])
{
rules.resetMatchGroups();
@@ -100,7 +100,7 @@ bool Pattern::matches(Expression const& _expr) const
{
if (_expr.type() != typeid(Literal))
return false;
- Literal const& literal = boost::get<Literal const&>(_expr);
+ Literal const& literal = boost::get<Literal>(_expr);
if (literal.kind != assembly::LiteralKind::Number)
return false;
if (m_data && *m_data != u256(literal.value))
@@ -111,7 +111,7 @@ bool Pattern::matches(Expression const& _expr) const
{
if (_expr.type() != typeid(FunctionalInstruction))
return false;
- FunctionalInstruction const& instr = boost::get<FunctionalInstruction const&>(_expr);
+ FunctionalInstruction const& instr = boost::get<FunctionalInstruction>(_expr);
if (m_instruction != instr.instruction)
return false;
assertThrow(m_arguments.size() == instr.arguments.size(), OptimizerException, "");
@@ -168,7 +168,7 @@ Expression Pattern::toExpression(SourceLocation const& _location) const
u256 Pattern::d() const
{
- Literal const& literal = boost::get<Literal const&>(matchGroupValue());
+ Literal const& literal = boost::get<Literal>(matchGroupValue());
assertThrow(literal.kind == assembly::LiteralKind::Number, OptimizerException, "");
return u256(literal.value);
}