summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2011-02-04 16:13:51 +0000
committerDavid Mitchell <davem@iabyn.com>2011-02-06 21:34:43 +0000
commitec91163905621041ab51a01ae08a4f6818dbf6f3 (patch)
tree75110e030e5d443279acb9787386a3f8c9e4de9a /pp_hot.c
parent61f4bfbf9d4e374c190a1a11f9bf2f09e7450187 (diff)
downloadperl-ec91163905621041ab51a01ae08a4f6818dbf6f3.tar.gz
pp_substr: combine two identical blocks of code
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 2241c31303..c20fb051db 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -2226,15 +2226,8 @@ PP(pp_subst)
&& (!doutf8 || SvUTF8(TARG)))
{
if (!matched)
- {
- SPAGAIN;
- if (rpm->op_pmflags & PMf_NONDESTRUCT)
- PUSHs(TARG);
- else
- PUSHs(&PL_sv_no);
- LEAVE_SCOPE(oldsave);
- RETURN;
- }
+ goto ret_no;
+
#ifdef PERL_OLD_COPY_ON_WRITE
if (SvIsCOW(TARG)) {
assert (!force_on_match);