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 a2289d1 commit 893f890Copy full SHA for 893f890
Python/compile.c
@@ -9450,10 +9450,12 @@ calculate_jump_targets(basicblock *entryblock)
9450
for (int i = 0; i < b->b_iused; i++) {
9451
struct instr *instr = &b->b_instr[i];
9452
assert(instr->i_target == NULL);
9453
- instr->i_target = label2block[instr->i_target_label.id];
9454
if (is_jump(instr) || is_block_push(instr)) {
+ int lbl = instr->i_target_label.id;
9455
+ assert(lbl >= 0 && lbl <= max_label);
9456
+ instr->i_target = label2block[lbl];
9457
assert(instr->i_target != NULL);
- assert(instr->i_target->b_label == instr->i_target_label.id);
9458
+ assert(instr->i_target->b_label == lbl);
9459
}
9460
instr->i_target_label = NO_LABEL;
9461
0 commit comments