diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-08-21 22:44:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-21 22:44:31 (GMT) |
commit | a1cc74c4eebc55795877eb3be019a1bec34402f8 (patch) | |
tree | 228136513450c306038d58a6f80aa280ba10ec52 /Python | |
parent | e6db23f66d8741db0ffc526d8fd75373a5543e3e (diff) | |
download | cpython-a1cc74c4eebc55795877eb3be019a1bec34402f8.zip cpython-a1cc74c4eebc55795877eb3be019a1bec34402f8.tar.gz cpython-a1cc74c4eebc55795877eb3be019a1bec34402f8.tar.bz2 |
gh-107901: Fix missing line number on BACKWARD_JUMP at the end of a for loop (#108242)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/flowgraph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/flowgraph.c b/Python/flowgraph.c index 9d78656..719ed92 100644 --- a/Python/flowgraph.c +++ b/Python/flowgraph.c @@ -531,7 +531,7 @@ normalize_jumps_in_block(cfg_builder *g, basicblock *b) { if (backwards_jump == NULL) { return ERROR; } - basicblock_addop(backwards_jump, JUMP, target->b_label.id, NO_LOCATION); + basicblock_addop(backwards_jump, JUMP, target->b_label.id, last->i_loc); backwards_jump->b_instr[0].i_target = target; last->i_opcode = reversed_opcode; last->i_target = b->b_next; |