Skip to content

Commit

Permalink
Merge 923a39c into 1005e8f
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed May 6, 2021
2 parents 1005e8f + 923a39c commit 8c886a1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions op.c
Expand Up @@ -1964,6 +1964,11 @@ Perl_scalar(pTHX_ OP *o)
case OP_LEAVETRY:
kid = cLISTOPo->op_first;
scalar(kid);
if (!OpHAS_SIBLING(kid)) {
/* handle broken leave trees */
next_kid = kid;
goto do_next;
}
kid = OpSIBLING(kid);
do_kids:
while (kid) {
Expand Down Expand Up @@ -2552,6 +2557,11 @@ Perl_list(pTHX_ OP *o)
case OP_LEAVETRY:
kid = cLISTOPo->op_first;
list(kid);
if (!OpHAS_SIBLING(kid)) {
/* handle broken leave trees */
next_kid = kid;
goto do_next;
}
kid = OpSIBLING(kid);
do_kids:
while (kid) {
Expand Down

0 comments on commit 8c886a1

Please sign in to comment.