summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-11-12 06:13:44 -0800
committerFather Chrysostomos <sprout@cpan.org>2013-11-14 05:54:35 -0800
commitc5f75dbad5e3c30268ca3c689bf1f3316d2c3a5a (patch)
tree377f4a6eacfc80909a0e4bc402be656f315eff48 /op.c
parentbc81b34d0e30a0939f9a765397a98e4d1fdfa3e1 (diff)
downloadperl-c5f75dbad5e3c30268ca3c689bf1f3316d2c3a5a.tar.gz
Compile-time checking for %$obj{"key"} under ‘use fields’
This single line of code also gives us shared hash key optimisa- tions for free.
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 625eabaf7c..412a5ce787 100644
--- a/op.c
+++ b/op.c
@@ -1935,6 +1935,7 @@ S_finalize_op(pTHX_ OP* o)
case OP_HSLICE:
S_scalar_slice_warning(aTHX_ o);
+ case OP_KVHSLICE:
if (/* I bet there's always a pushmark... */
(kid = cLISTOPo->op_first->op_sibling)->op_type != OP_LIST
&& kid->op_type != OP_CONST)