This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove another CvLVALUE check from pp_leavesublv
authorFather Chrysostomos <sprout@cpan.org>
Wed, 22 Jun 2011 15:36:45 +0000 (08:36 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 22 Jun 2011 19:29:21 +0000 (12:29 -0700)
pp_ctl.c

index c358734..9f7c52a 100644 (file)
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2437,8 +2437,6 @@ PP(pp_leavesublv)
            goto rvalue;
        if (gimme == G_ARRAY) {
            mark = newsp + 1;
            goto rvalue;
        if (gimme == G_ARRAY) {
            mark = newsp + 1;
-           if (!CvLVALUE(cx->blk_sub.cv))
-               goto rvalue_array;
            EXTEND_MORTAL(SP - newsp);
            for (mark = newsp + 1; mark <= SP; mark++) {
                if (SvTEMP(*mark))
            EXTEND_MORTAL(SP - newsp);
            for (mark = newsp + 1; mark <= SP; mark++) {
                if (SvTEMP(*mark))