This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pad.c:pad_alloc: Remove redundant IS_PADGV
authorFather Chrysostomos <sprout@cpan.org>
Thu, 18 Sep 2014 03:20:53 +0000 (20:20 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 18 Sep 2014 06:39:28 +0000 (23:39 -0700)
commit13381c391de0642003d3624c1d0fe8546509d142
tree935457a51b9208c4bf7fad3b7b064e29be525eb5
parentb1334eb561a5055ad8a8362c53fbf5660fe12cf5
pad.c:pad_alloc: Remove redundant IS_PADGV

GVs are stored in the pads in two code paths, newPADOP when called by
newGVOP, and ck_rvconst.  Both of those now set the pad name to
&PL_sv_no, as of c9859fbde1 and c2bad63bb3.  So by the time this
check is reached, IS_PADGV can never be true.
pad.c