summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2010-11-26 14:24:30 -0800
committerFather Chrysostomos <sprout@cpan.org>2010-11-26 14:38:50 -0800
commitbcc76ee34baf39636d60454c7d178f030ac755e3 (patch)
tree631e0a86251c9559d9a9d22be36b60ea8baec39b /op.c
parent4c540399ef7fb5ef4e3a1dc7391da46f9d1c571c (diff)
downloadperl-bcc76ee34baf39636d60454c7d178f030ac755e3.tar.gz
[perl #78810] PERLDB_NOOPT ignored by adjacent nextstate optimisation
As mentioned in the RT ticket, ac56e7d did not take PERLDB_NOOPT into account.
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index 2115c66298..5346a89803 100644
--- a/op.c
+++ b/op.c
@@ -9317,7 +9317,7 @@ Perl_rpeep(pTHX_ register OP *o)
/* Two NEXTSTATEs in a row serve no purpose. Except if they happen
to carry two labels. For now, take the easier option, and skip
this optimisation if the first NEXTSTATE has a label. */
- if (!CopLABEL((COP*)o)) {
+ if (!CopLABEL((COP*)o) && !PERLDB_NOOPT) {
OP *nextop = o->op_next;
while (nextop && nextop->op_type == OP_NULL)
nextop = nextop->op_next;