From b8074cdf788ee1cae862929c0428a95cc5248269 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 17 Jan 2018 19:18:42 +0100 Subject: Add flag to indicate whether it can be applied to expressions with side-effects. --- libevmasm/ExpressionClasses.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libevmasm/ExpressionClasses.cpp') diff --git a/libevmasm/ExpressionClasses.cpp b/libevmasm/ExpressionClasses.cpp index fc283b0b..58c254b1 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(match->second(), _expr.item->location())); + return rebuildExpression(ExpressionTemplate(std::get<1>(*match)(), _expr.item->location())); } if (!_secondRun && _expr.arguments.size() == 2 && SemanticInformation::isCommutativeOperation(*_expr.item)) -- cgit