summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2013-07-31 10:08:18 +0100
committerDavid Mitchell <davem@iabyn.com>2013-07-31 10:08:18 +0100
commitadf51885e3854cd61753c6737ae2e11882559838 (patch)
treee9e12353e0cb8113b59b682b8a9d454a85646b25 /pp_hot.c
parent9a743a6d839e1f1163fcb6ecaf00d8eba7d8ffbf (diff)
downloadperl-adf51885e3854cd61753c6737ae2e11882559838.tar.gz
pp_match(): remove redundant condition
a successful match always sets $-[0] now, so there's no need to check whether its set
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 79c9c458c4..d7de38a8e0 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1447,14 +1447,11 @@ PP(pp_match)
if (!mg) {
mg = sv_magicext_mglob(TARG);
}
- assert(RX_OFFS(rx)[0].start != -1); /* XXX get rid of next line? */
- if (RX_OFFS(rx)[0].start != -1) {
- mg->mg_len = RX_OFFS(rx)[0].end;
- if (RX_ZERO_LEN(rx))
- mg->mg_flags |= MGf_MINMATCH;
- else
- mg->mg_flags &= ~MGf_MINMATCH;
- }
+ mg->mg_len = RX_OFFS(rx)[0].end;
+ if (RX_ZERO_LEN(rx))
+ mg->mg_flags |= MGf_MINMATCH;
+ else
+ mg->mg_flags &= ~MGf_MINMATCH;
}
if ((!RX_NPARENS(rx) && !global) || gimme != G_ARRAY) {