diff options
author | Father Chrysostomos <sprout@cpan.org> | 2013-07-02 18:29:43 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-07-25 23:48:02 -0700 |
commit | a888bde5d7a5dd33725c4f5c4b3220e152ab9f5e (patch) | |
tree | 3f65b887ddb41d1d72ab0bf1fee51ee84044af11 /pad.c | |
parent | c902d85e7652ab578dceefc793d634241321e990 (diff) | |
download | perl-a888bde5d7a5dd33725c4f5c4b3220e152ab9f5e.tar.gz |
Don’t check IS_PADCONST in pad.c:pad_alloc
Since recent commits have given constants &PL_sv_no names, this check
is redundant, since any slots for constants will have been skipped
over by the sv != &PL_sv_undef check just above.
Diffstat (limited to 'pad.c')
-rw-r--r-- | pad.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -768,7 +768,7 @@ Perl_pad_alloc(pTHX_ I32 optype, U32 tmptype) continue; sv = *av_fetch(PL_comppad, PL_padix, TRUE); if (!(SvFLAGS(sv) & (SVs_PADTMP | SVs_PADMY)) && - !IS_PADGV(sv) && !IS_PADCONST(sv)) + !IS_PADGV(sv)) break; } if (tmptype & SVf_READONLY) { |