]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-133279: Assert with HAS_TARGET in the codegen_addop_j function (#133280)
authorNybblista <170842536+nybblista@users.noreply.github.com>
Fri, 2 May 2025 12:52:48 +0000 (15:52 +0300)
committerGitHub <noreply@github.com>
Fri, 2 May 2025 12:52:48 +0000 (13:52 +0100)
Python/codegen.c

index c7662538408f5d589a44a90394e105ee4d97613e..683601103ec99d46645a3a2c6341cd8ceeb57286 100644 (file)
@@ -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);
 }