Skip to content

Commit 20f8ed5

Browse files
authored
gh-133279: Assert with HAS_TARGET in the codegen_addop_j function (#133280)
1 parent 2590774 commit 20f8ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/codegen.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ codegen_addop_j(instr_sequence *seq, location loc,
399399
int opcode, jump_target_label target)
400400
{
401401
assert(IS_JUMP_TARGET_LABEL(target));
402-
assert(OPCODE_HAS_JUMP(opcode) || IS_BLOCK_PUSH_OPCODE(opcode));
402+
assert(HAS_TARGET(opcode));
403403
assert(!IS_ASSEMBLER_OPCODE(opcode));
404404
return _PyInstructionSequence_Addop(seq, opcode, target.id, loc);
405405
}

0 commit comments

Comments
 (0)