We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0c9943 commit 7e087d7Copy full SHA for 7e087d7
Python/flowgraph.c
@@ -3617,7 +3617,10 @@ propagate_line_numbers(basicblock *entryblock) {
3617
}
3618
if (is_jump(last)) {
3619
basicblock *target = last->i_target;
3620
- if (target->b_predecessors == 1) {
+ while (target->b_iused == 0 && target->b_predecessors == 1) {
3621
+ target = target->b_next;
3622
+ }
3623
+ if (target->b_predecessors == 1 && target->b_iused > 0) {
3624
if (target->b_instr[0].i_loc.lineno == NO_LOCATION.lineno) {
3625
target->b_instr[0].i_loc = prev_location;
3626
0 commit comments