summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorGerard Goossen <gerard@ggoossen.net>2011-08-31 15:55:26 +0200
committerFather Chrysostomos <sprout@cpan.org>2011-09-01 12:45:11 -0700
commit0e9700df31679b575960004d0c9d53e4f67341b3 (patch)
treea173c48eb7c8aaec2532c0b2b58d70c639630960 /cop.h
parent6c5d44995b59b5064afd13d482ddd637f85f4db5 (diff)
downloadperl-0e9700df31679b575960004d0c9d53e4f67341b3.tar.gz
Use OPpDEREF for lvalue sub, such that the flags contains the deref type, instead of deriving it from the opchain.
Also contains a test where using the opchain to determine the deref type fails.
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cop.h b/cop.h
index 6512451f67..8cd8a8ae25 100644
--- a/cop.h
+++ b/cop.h
@@ -643,7 +643,7 @@ struct block_format {
? 0 : Perl_was_lvalue_sub(aTHX); \
PUSHSUB_BASE(cx) \
cx->blk_u16 = PL_op->op_private & \
- (phlags|OPpENTERSUB_DEREF); \
+ (phlags|OPpDEREF); \
}
/* variant for use by OP_DBSTATE, where op_private holds hint bits */