summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorRichard Leach <richardleach@users.noreply.github.com>2022-07-28 22:35:24 +0000
committerKarl Williamson <khw@cpan.org>2022-08-05 14:44:12 -0600
commit518db96ae536faa5656a7cdc6b3dc510b75edb79 (patch)
tree0a339e11a13dc7a5381a2f6b2a7624e83be2f6ae /pp.c
parente033b0b9c2bf27f70f0267fc75188d4e7d2fc863 (diff)
downloadperl-518db96ae536faa5656a7cdc6b3dc510b75edb79.tar.gz
Replace sv_2mortal(newSVhek( with newSVhek_mortal
The new Perl_newSVhek_mortal function is slightly more efficient.
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp.c b/pp.c
index fbcae8c3b7..1fcc9d4f9f 100644
--- a/pp.c
+++ b/pp.c
@@ -904,11 +904,11 @@ PP(pp_undef)
"Constant subroutine %" SVf " undefined",
SVfARG(CvANON((const CV *)sv)
? newSVpvs_flags("(anonymous)", SVs_TEMP)
- : sv_2mortal(newSVhek(
+ : newSVhek_mortal(
CvNAMED(sv)
? CvNAME_HEK((CV *)sv)
: GvENAME_HEK(CvGV((const CV *)sv))
- ))
+ )
));
/* FALLTHROUGH */
case SVt_PVFM: