diff options
author | chriseth <chris@ethereum.org> | 2018-01-18 02:18:42 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-02-07 05:51:30 +0800 |
commit | b8074cdf788ee1cae862929c0428a95cc5248269 (patch) | |
tree | 0a89ac871bc0cc23cfe5d6f6075e947ee4d0ec5b /libevmasm/ExpressionClasses.cpp | |
parent | 491d6d3e0c131bcafc10d4bc86df0d6833955cd4 (diff) | |
download | dexon-solidity-b8074cdf788ee1cae862929c0428a95cc5248269.tar.gz dexon-solidity-b8074cdf788ee1cae862929c0428a95cc5248269.tar.zst dexon-solidity-b8074cdf788ee1cae862929c0428a95cc5248269.zip |
Add flag to indicate whether it can be applied to expressions with side-effects.
Diffstat (limited to 'libevmasm/ExpressionClasses.cpp')
-rw-r--r-- | libevmasm/ExpressionClasses.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |