summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--op.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/op.c b/op.c
index eebaf67952..cb9b0e6ebf 100644
--- a/op.c
+++ b/op.c
@@ -7319,6 +7319,10 @@ Perl_peep(pTHX_ register OP *o)
o->op_opt = 1;
+
+ if ((o->op_flags && OPf_WANT) != OPf_WANT_VOID)
+ break;
+
if ((o->op_private & ~OPpASSIGN_BACKWARDS) != 2)
break;