diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-08-22 14:15:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-22 14:15:34 (GMT) |
commit | 4ee945479243125ea5c50be526e754df4ab9c749 (patch) | |
tree | 25788d9d580d7918de59f05ca760274527f75afd /Python/flowgraph.c | |
parent | 149d70c2546d9615e6292135430795c3cf2b50fe (diff) | |
download | cpython-4ee945479243125ea5c50be526e754df4ab9c749.zip cpython-4ee945479243125ea5c50be526e754df4ab9c749.tar.gz cpython-4ee945479243125ea5c50be526e754df4ab9c749.tar.bz2 |
[3.12] gh-107901: Fix missing line number on BACKWARD_JUMP at the end of a for loop (GH-108242) (#108275)
gh-107901: Fix missing line number on BACKWARD_JUMP at the end of a for loop (GH-108242)
(cherry picked from commit a1cc74c4eebc55795877eb3be019a1bec34402f8)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Diffstat (limited to 'Python/flowgraph.c')
-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 f8039a4..4fe581b 100644 --- a/Python/flowgraph.c +++ b/Python/flowgraph.c @@ -450,7 +450,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; |