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 Aug 7, 2021
1 parent ad06b7d commit 8ff93f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions regcomp.c
Expand Up @@ -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;
Expand All @@ -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 */
Expand Down

0 comments on commit 8ff93f9

Please sign in to comment.