Skip to content

Commit

Permalink
regcomp.c: Move some code to within a block
Browse files Browse the repository at this point in the history
This code is irrelevant unless the condition of the block immediately
before it is TRUE, so move it to within that block.
  • Loading branch information
khwilliamson committed Jun 2, 2021
1 parent 45bf64d commit f974d37
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions regcomp.c
Expand Up @@ -19344,16 +19344,16 @@ 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 (start[0] == 0 && end[0] == UV_MAX) {
if (*invert) {
goto return_OPFAIL;
}
else {
goto return_SANY;
/* 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;
}
else {
goto return_SANY;
}
}
}

Expand Down

0 comments on commit f974d37

Please sign in to comment.