summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2004-05-04 19:20:36 +0000
committerDave Mitchell <davem@fdisolutions.com>2004-05-04 19:20:36 +0000
commit9ff53bc97fe2246e61874ffc409d9e547337a471 (patch)
tree8be08f39f896db6a42e1d300b8da3922838432dd /op.c
parent66c611c54494622936416a3e5713bc7d44ef96ba (diff)
downloadperl-9ff53bc97fe2246e61874ffc409d9e547337a471.tar.gz
[perl #29340] Bizarre copy of ARRAY
make sure a pad op's flags are updated after optimising away the assignment in my @a = () (see change 22520). p4raw-id: //depot/perl@22781
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 02144e872b..b3b5c441c4 100644
--- a/op.c
+++ b/op.c
@@ -3130,6 +3130,7 @@ Perl_newASSIGNOP(pTHX_ I32 flags, OP *left, I32 optype, OP *right)
&& (left->op_private & OPpLVAL_INTRO))
{
op_free(right);
+ left->op_flags &= ~(OPf_REF|OPf_SPECIAL);
return left;
}
curop = list(force_list(left));