summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-02-20 15:24:19 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-20 15:24:19 +0000
commitc8e848242cfcd16fd5e4f5bf923218c3f6399df2 (patch)
treedac4b755b42b4678e2c1b493b060c1e777497a2d /op.c
parente21a939cd16ad7aaf69a5431a98165c8dad983db (diff)
downloadperl-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/op.c b/op.c
index 759b8d70b2..e39850e7c4 100644
--- a/op.c
+++ b/op.c
@@ -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);