diff options
| author | Nybblista <170842536+nybblista@users.noreply.github.com> | 2025-05-02 12:52:48 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-02 12:52:48 (GMT) |
| commit | 20f8ed595d176d951a09eba045cd69ca62981b18 (patch) | |
| tree | 8d4066ded185ff9c1f8acee6fd8917de8b362ea1 /Python/codegen.c | |
| parent | 2590774c9bb96ec75ca8a13b0c061fcc9db3eb65 (diff) | |
| download | cpython-20f8ed595d176d951a09eba045cd69ca62981b18.zip cpython-20f8ed595d176d951a09eba045cd69ca62981b18.tar.gz cpython-20f8ed595d176d951a09eba045cd69ca62981b18.tar.bz2 | |
gh-133279: Assert with HAS_TARGET in the codegen_addop_j function (#133280)
Diffstat (limited to 'Python/codegen.c')
| -rw-r--r-- | Python/codegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/codegen.c b/Python/codegen.c index c766253..6836011 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); } |
