https://github.com/python/cpython/commit/20f8ed595d176d951a09eba045cd69ca62981b18
commit: 20f8ed595d176d951a09eba045cd69ca62981b18
branch: main
author: Nybblista <[email protected]>
committer: iritkatriel <[email protected]>
date: 2025-05-02T13:52:48+01:00
summary:
gh-133279: Assert with HAS_TARGET in the codegen_addop_j function (#133280)
files:
M Python/codegen.c
diff --git a/Python/codegen.c b/Python/codegen.c
index c7662538408f5d..683601103ec99d 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);
}
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]