summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2013-06-16 16:54:09 +0100
committerDavid Mitchell <davem@iabyn.com>2013-07-28 10:33:35 +0100
commitf0fb0b59f464b08ce14cb154cbf940ff94b2fada (patch)
treef9158a84ea28c1ee9be41f3fca687810e42fab2a /pp_hot.c
parent03b6c93d31676fe9936f9a438ca3f9c1ba46fba9 (diff)
downloadperl-f0fb0b59f464b08ce14cb154cbf940ff94b2fada.tar.gz
pp_match(): intuit can handle refs these days
It looks like we no longer need to skip intuit-only matching when the match is a ref or overloaded (e.g. $ref =~ /ARRAY/)
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 899f35f122..4d7467d5e8 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1439,9 +1439,7 @@ PP(pp_match)
if (!s)
goto nope;
- if ( (RX_EXTFLAGS(rx) & RXf_CHECK_ALL)
- && !SvROK(TARG)) /* Cannot trust since INTUIT cannot guess ^ */
- {
+ if (RX_EXTFLAGS(rx) & RXf_CHECK_ALL) {
/* we can match based purely on the result of INTUIT.
* Fix up all the things that won't get set because we skip
* calling regexec() */