aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-01-10 23:35:18 +0800
committerchriseth <c@ethdev.com>2017-01-13 00:52:27 +0800
commit58509ca3aa1f1c649303bca4e705c1c96e832c08 (patch)
tree2b52d386d386034362ee8aafc0d973fbf6a0afb9
parent7127f2fdfdc1bfb8efd9a1212725e36c3c42ad9a (diff)
downloaddexon-solidity-58509ca3aa1f1c649303bca4e705c1c96e832c08.tar.gz
dexon-solidity-58509ca3aa1f1c649303bca4e705c1c96e832c08.tar.zst
dexon-solidity-58509ca3aa1f1c649303bca4e705c1c96e832c08.zip
Fix match groups.
-rw-r--r--libevmasm/SimplificationRules.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libevmasm/SimplificationRules.cpp b/libevmasm/SimplificationRules.cpp
index 0e95b4bb..2976d95f 100644
--- a/libevmasm/SimplificationRules.cpp
+++ b/libevmasm/SimplificationRules.cpp
@@ -48,6 +48,7 @@ pair<Pattern, function<Pattern()> > const* Rules::findFirstMatch(
{
if (rule.first.matches(_expr, _classes))
return &rule;
+ resetMatchGroups();
}
return nullptr;
}