diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-20 15:24:19 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-20 15:24:19 +0000 |
commit | c8e848242cfcd16fd5e4f5bf923218c3f6399df2 (patch) | |
tree | dac4b755b42b4678e2c1b493b060c1e777497a2d /op.c | |
parent | e21a939cd16ad7aaf69a5431a98165c8dad983db (diff) | |
download | perl-c8e848242cfcd16fd5e4f5bf923218c3f6399df2.tar.gz |
Integrate change #14778 from maintperl;
constant folding on the range operator had the effect of disabling
peephole optimizations in all the siblings of the range OP; the
effect of this was that barewords could escape strictures when
they were hiding in such places
p4raw-link: @14778 on //depot/maint-5.6/perl: 0ef6625236721d79a74c662bb0d14b11d0d775c2
p4raw-id: //depot/perl@14791
p4raw-integrated: from //depot/maint-5.6/perl@14790 'merge in' op.c
(@14439..)
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2522,6 +2522,7 @@ Perl_gen_constant_list(pTHX_ register OP *o) o->op_type = OP_RV2AV; o->op_ppaddr = PL_ppaddr[OP_RV2AV]; + o->op_seq = 0; /* needs to be revisited in peep() */ curop = ((UNOP*)o)->op_first; ((UNOP*)o)->op_first = newSVOP(OP_CONST, 0, SvREFCNT_inc(*PL_stack_sp--)); op_free(curop); |