Skip to content

Commit

Permalink
Merge 923a39c into 1e43c13
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed May 8, 2021
2 parents 1e43c13 + 923a39c commit 3c394a3
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 3c394a3

Please sign in to comment.