From: Ulya Trofimovich Date: Sat, 13 Jul 2019 10:25:25 +0000 (+0100) Subject: Fixed Clang warning -Wunreachable-code (these were real serious errors). X-Git-Tag: 1.2~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=273532a26b1945aa3d5bba0552453ae42f7ffdc1;p=re2c Fixed Clang warning -Wunreachable-code (these were real serious errors). --- diff --git a/lib/regexec_nfa_leftmost_trie.cc b/lib/regexec_nfa_leftmost_trie.cc index 6428e2bf..37d9cc56 100644 --- a/lib/regexec_nfa_leftmost_trie.cc +++ b/lib/regexec_nfa_leftmost_trie.cc @@ -33,8 +33,8 @@ int regexec_nfa_leftmost_trie(const regex_t *preg, const char *string } make_final_step(ctx); - return finalize(ctx, string, nmatch, pmatch); ctx.history.cache.clear(); + return finalize(ctx, string, nmatch, pmatch); } void make_step(lzsimctx_t &ctx, uint32_t sym) diff --git a/lib/regexec_nfa_posix_trie.cc b/lib/regexec_nfa_posix_trie.cc index ce062098..90e9ec03 100644 --- a/lib/regexec_nfa_posix_trie.cc +++ b/lib/regexec_nfa_posix_trie.cc @@ -39,8 +39,8 @@ int regexec_nfa_posix_trie(const regex_t *preg, const char *string } make_final_step(ctx); - return finalize(ctx, string, nmatch, pmatch); ctx.history.cache.clear(); + return finalize(ctx, string, nmatch, pmatch); } void closure_posix(pzsimctx_t &ctx)