summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-08-03 12:41:11 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-09-15 22:45:05 -0700
commit2e800d795e15b864092072119d45b4d3b18b4c88 (patch)
tree3a26ed24f78ac44e0583caa579ea9878f1016877 /scope.c
parent6d5c21479838db78689e08afd075ef4e9100ef0d (diff)
downloadperl-2e800d795e15b864092072119d45b4d3b18b4c88.tar.gz
CvNAME_HEK_set
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/scope.c b/scope.c
index c21fea0616..db2d43be5b 100644
--- a/scope.c
+++ b/scope.c
@@ -937,8 +937,7 @@ Perl_leave_scope(pTHX_ I32 base)
assert(hek);
share_hek_hek(hek);
cv_undef((CV *)sv);
- SvANY((CV *)sv)->xcv_gv_u.xcv_hek = hek;
- CvNAMED_on(sv);
+ CvNAME_HEK_set(sv, hek);
break;
}
default:
@@ -964,9 +963,8 @@ Perl_leave_scope(pTHX_ I32 base)
/* Share name */
assert(CvNAMED(sv));
- SvANY((CV *)*svp)->xcv_gv_u.xcv_hek =
- share_hek_hek(SvANY((CV *)sv)->xcv_gv_u.xcv_hek);
- CvNAMED_on(*svp);
+ CvNAME_HEK_set(*svp,
+ share_hek_hek(CvNAME_HEK((CV *)sv)));
/* Steal magic */
while (mg) {