diff --git a/libevmcore/Assembly.cpp b/libevmcore/Assembly.cpp index b3cb191b7..37c3ff18d 100644 --- a/libevmcore/Assembly.cpp +++ b/libevmcore/Assembly.cpp @@ -441,7 +441,7 @@ Assembly& Assembly::optimise(bool _enable) if (i.type() == PushTag) tags.erase(i.data()); - if (tags.empty()) + if (!tags.empty()) { auto t = *tags.begin(); unsigned i = t.second;