Skip to content

Commit f04eb08

Browse files
committed
pp_goto: Refactor out statement used in both if and else branches
The same (C) goto statement occurs at the end of each branch of an if-else structure. We can move them to a single statement just after the conclusion of the else branch.
1 parent 4f5c042 commit f04eb08

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pp_ctl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3473,7 +3473,6 @@ PP(pp_goto)
34733473
PUSHMARK(mark);
34743474
rpp_invoke_xs(cv);
34753475
LEAVE;
3476-
goto finish;
34773476
}
34783477
else {
34793478
PADLIST * const padlist = CvPADLIST(cv);
@@ -3529,8 +3528,8 @@ PP(pp_goto)
35293528
}
35303529
}
35313530
retop = CvSTART(cv);
3532-
goto finish;
35333531
}
3532+
goto finish;
35343533
}
35353534
else {
35363535
/* goto EXPR */

0 commit comments

Comments
 (0)