diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-01-18 15:48:13 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-01-18 15:48:13 +0000 |
commit | ea724faac0e9bd1598db5c1f1c5bd689c0be70fc (patch) | |
tree | e9cf9e92e0edf99cfd1b4f3b456b9e468dbb8b44 /sv.c | |
parent | a3d1be69db4c082c1b9cef14f51a6e7fe4a9dac9 (diff) | |
download | perl-ea724faac0e9bd1598db5c1f1c5bd689c0be70fc.tar.gz |
Given that we now do the tests in S_visit() to avoid calling the
helper function when skippable, no need to retain those tests
inside the helper functions do_clean_objs() and do_clean_named_objs().
p4raw-id: //depot/perl@29872
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -443,7 +443,8 @@ static void do_clean_objs(pTHX_ SV *ref) { dVAR; - if (SvROK(ref)) { + assert (SvROK(ref)); + { SV * const target = SvRV(ref); if (SvOBJECT(target)) { DEBUG_D((PerlIO_printf(Perl_debug_log, "Cleaning object ref:\n "), sv_dump(ref))); @@ -469,7 +470,8 @@ static void do_clean_named_objs(pTHX_ SV *sv) { dVAR; - if (SvTYPE(sv) == SVt_PVGV && isGV_with_GP(sv) && GvGP(sv)) { + assert(SvTYPE(sv) == SVt_PVGV); + if (isGV_with_GP(sv) && GvGP(sv)) { if (( #ifdef PERL_DONT_CREATE_GVSV GvSV(sv) && |