summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-07-02 18:29:43 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-07-25 23:48:02 -0700
commita888bde5d7a5dd33725c4f5c4b3220e152ab9f5e (patch)
tree3f65b887ddb41d1d72ab0bf1fee51ee84044af11 /pad.c
parentc902d85e7652ab578dceefc793d634241321e990 (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pad.c b/pad.c
index 082dc662f9..76d8aa479e 100644
--- a/pad.c
+++ b/pad.c
@@ -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) {