Skip to content

Commit d488c98

Browse files
committed
fix crash
1 parent c9ae7ef commit d488c98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Python/flowgraph.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3472,20 +3472,21 @@ convert_pseudo_conditional_jumps(cfg_builder *g)
34723472
instr->i_opcode = instr->i_opcode == JUMP_IF_FALSE ?
34733473
POP_JUMP_IF_FALSE : POP_JUMP_IF_TRUE;
34743474
location loc = instr->i_loc;
3475+
basicblock *except = instr->i_except;
34753476
cfg_instr copy = {
34763477
.i_opcode = COPY,
34773478
.i_oparg = 1,
34783479
.i_loc = loc,
34793480
.i_target = NULL,
3480-
.i_except = instr->i_except,
3481+
.i_except = except,
34813482
};
34823483
RETURN_IF_ERROR(basicblock_insert_instruction(b, i++, &copy));
34833484
cfg_instr to_bool = {
34843485
.i_opcode = TO_BOOL,
34853486
.i_oparg = 0,
34863487
.i_loc = loc,
34873488
.i_target = NULL,
3488-
.i_except = instr->i_except,
3489+
.i_except = except,
34893490
};
34903491
RETURN_IF_ERROR(basicblock_insert_instruction(b, i++, &to_bool));
34913492
}

0 commit comments

Comments
 (0)