summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-05-18 17:02:39 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-05-21 18:09:31 -0700
commitbee7c5743fabd49c584c5edbb637c66c5c25ca9a (patch)
tree690cab29b1118cfd41d79a0f9cd0a71190d68c44 /sv.c
parent65f57195e2874c2856537d3f9d2b82ace1d47537 (diff)
downloadperl-bee7c5743fabd49c584c5edbb637c66c5c25ca9a.tar.gz
sv.c: Don’t fiddle with AMAGIC in sv_bless
Since overloading itself now checks whether caches are up to date, and since changes to the stash (@ISA, methods) turn the flag on and over- loading itself turns the flag off when it can, sv_bless no longer needs to deal with it at all.
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sv.c b/sv.c
index 0c940cb434..1e7f4d2e34 100644
--- a/sv.c
+++ b/sv.c
@@ -9518,11 +9518,6 @@ Perl_sv_bless(pTHX_ SV *const sv, HV *const stash)
SvUPGRADE(tmpRef, SVt_PVMG);
SvSTASH_set(tmpRef, MUTABLE_HV(SvREFCNT_inc_simple(stash)));
- if (Gv_AMG(stash))
- SvAMAGIC_on(sv);
- else
- (void)SvAMAGIC_off(sv);
-
if(SvSMAGICAL(tmpRef))
if(mg_find(tmpRef, PERL_MAGIC_ext) || mg_find(tmpRef, PERL_MAGIC_uvar))
mg_set(tmpRef);