From: Ulya Trofimovich Date: Sat, 30 Apr 2016 15:23:32 +0000 (+0100) Subject: Break from loop if the remaining iterations have no effect. X-Git-Tag: 1.0~39^2~327 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3057814e26acd2fe711ad0910239eee66c2aa151;p=re2c Break from loop if the remaining iterations have no effect. --- 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; } } }