From 3057814e26acd2fe711ad0910239eee66c2aa151 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Sat, 30 Apr 2016 16:23:32 +0100 Subject: [PATCH] Break from loop if the remaining iterations have no effect. --- re2c/src/ir/dfa/fallback.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/re2c/src/ir/dfa/fallback.cc b/re2c/src/ir/dfa/fallback.cc index 7a92750e..94419036 100644 --- a/re2c/src/ir/dfa/fallback.cc +++ b/re2c/src/ir/dfa/fallback.cc @@ -21,6 +21,7 @@ void fallback_states(const dfa_t &dfa, std::vector &fallback) if (j != dfa_t::NIL && dfa.states[j]->rule == Rule::NONE) { fallback.push_back(i); + break; } } } -- 2.40.0