Skip to content

Commit 8a3d017

Browse files
committed
use basicblock_last_instr
1 parent bf1c52f commit 8a3d017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7720,7 +7720,7 @@ assemble_emit(struct assembler *a, struct instr *i)
77207720

77217721
static int
77227722
normalize_jumps_in_block(cfg_builder *g, basicblock *b) {
7723-
struct instr *last = &b->b_instr[b->b_iused-1];
7723+
struct instr *last = basicblock_last_instr(b);
77247724
if (last == NULL || !is_jump(last)) {
77257725
return 0;
77267726
}

0 commit comments

Comments
 (0)