diff options
-rw-r--r-- | libevmasm/Assembly.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp index edbb9828..b040917d 100644 --- a/libevmasm/Assembly.cpp +++ b/libevmasm/Assembly.cpp @@ -331,8 +331,7 @@ map<u256, u256> Assembly::optimiseInternal(bool _enable, bool _isCreation, size_ } map<u256, u256> tagReplacements; - unsigned total = 0; - for (unsigned count = 1; count > 0; total += count) + for (unsigned count = 1; count > 0;) { count = 0; @@ -399,7 +398,7 @@ map<u256, u256> Assembly::optimiseInternal(bool _enable, bool _isCreation, size_ } if (_enable) - total += ConstantOptimisationMethod::optimiseConstants( + ConstantOptimisationMethod::optimiseConstants( _isCreation, _isCreation ? 1 : _runs, *this, |