summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-05-21 11:30:13 -0600
committerKarl Williamson <khw@cpan.org>2021-08-07 14:50:36 -0600
commit8ff93f9b9a682eaed6e2eaf68bd766cfaa3e3cfd (patch)
treea58f1a530b1c2b71da6722d283db9b2032075560 /regcomp.c
parentad06b7d50279bc74b53b6034e061808c7408017a (diff)
downloadperl-8ff93f9b9a682eaed6e2eaf68bd766cfaa3e3cfd.tar.gz
regcomp.c: Move some code to within a block
This code is irrelevant unless the condition of the block immediately before it is TRUE, so move it to within that block.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regcomp.c b/regcomp.c
index a94c4de77f..f42fbb7874 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -19345,10 +19345,9 @@ S_optimize_regclass(pTHX_
single_range = TRUE;
}
invlist_iterfinish(cp_list);
- }
- /* If we know at compile time that this matches every possible code point,
- * any run-time dependencies don't matter */
+ /* If we know at compile time that this matches every possible code
+ * point, any run-time dependencies don't matter */
if (start[0] == 0 && end[0] == UV_MAX) {
if (*invert) {
goto return_OPFAIL;
@@ -19357,6 +19356,7 @@ S_optimize_regclass(pTHX_
goto return_SANY;
}
}
+ }
/* Similarly, for /l posix classes, if both a class and its complement
* match, any run-time dependencies don't matter */