aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/ExpressionClasses.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-02-06 19:20:00 +0800
committerchriseth <chris@ethereum.org>2018-02-07 05:51:30 +0800
commitc961a3079dda8735363872cdb84c489d61846003 (patch)
tree8048fd3fbdd4f14031255344bfa1375a18d83e0f /libevmasm/ExpressionClasses.cpp
parent5523296eaa68a591a331d9b75dc19cf11d1c538e (diff)
downloaddexon-solidity-c961a3079dda8735363872cdb84c489d61846003.tar.gz
dexon-solidity-c961a3079dda8735363872cdb84c489d61846003.tar.zst
dexon-solidity-c961a3079dda8735363872cdb84c489d61846003.zip
Turn simplification rule tuple into struct.
Diffstat (limited to 'libevmasm/ExpressionClasses.cpp')
-rw-r--r--libevmasm/ExpressionClasses.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libevmasm/ExpressionClasses.cpp b/libevmasm/ExpressionClasses.cpp
index 3825f5ed..69b33ec5 100644
--- a/libevmasm/ExpressionClasses.cpp
+++ b/libevmasm/ExpressionClasses.cpp
@@ -202,7 +202,7 @@ ExpressionClasses::Id ExpressionClasses::tryToSimplify(Expression const& _expr)
//cout << "with rule " << match->first.toString() << endl;
//ExpressionTemplate t(match->second());
//cout << "to " << match->second().toString() << endl;
- return rebuildExpression(ExpressionTemplate(std::get<1>(*match)(), _expr.item->location()));
+ return rebuildExpression(ExpressionTemplate(match->action(), _expr.item->location()));
}
return -1;