From 20f8ed595d176d951a09eba045cd69ca62981b18 Mon Sep 17 00:00:00 2001 From: Nybblista <170842536+nybblista@users.noreply.github.com> Date: Fri, 2 May 2025 15:52:48 +0300 Subject: gh-133279: Assert with HAS_TARGET in the codegen_addop_j function (#133280) --- Python/codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/codegen.c') diff --git a/Python/codegen.c b/Python/codegen.c index c7662538408..683601103ec 100644 --- a/Python/codegen.c +++ b/Python/codegen.c @@ -399,7 +399,7 @@ codegen_addop_j(instr_sequence *seq, location loc, int opcode, jump_target_label target) { assert(IS_JUMP_TARGET_LABEL(target)); - assert(OPCODE_HAS_JUMP(opcode) || IS_BLOCK_PUSH_OPCODE(opcode)); + assert(HAS_TARGET(opcode)); assert(!IS_ASSEMBLER_OPCODE(opcode)); return _PyInstructionSequence_Addop(seq, opcode, target.id, loc); } -- cgit v1.2.3