diff options
author | Mark Shannon <mark@hotpy.org> | 2024-04-24 13:41:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-24 13:41:30 (GMT) |
commit | 83235f7791fbe6ee2618192f2341de9cd22d0511 (patch) | |
tree | eacb89c202dbf8af6a9d3cc9f99b564397cf3182 /Python/executor_cases.c.h | |
parent | 77cd0428b698a743844179f7babead43b2794d77 (diff) | |
download | cpython-83235f7791fbe6ee2618192f2341de9cd22d0511.zip cpython-83235f7791fbe6ee2618192f2341de9cd22d0511.tar.gz cpython-83235f7791fbe6ee2618192f2341de9cd22d0511.tar.bz2 |
GH-115419: Move setting the instruction pointer to error exit stubs (GH-118088)
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r-- | Python/executor_cases.c.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index 43b0221..7403d6f 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -4210,6 +4210,8 @@ case _ERROR_POP_N: { oparg = CURRENT_OPARG(); + uint32_t target = (uint32_t)CURRENT_OPERAND(); + frame->instr_ptr = ((_Py_CODEUNIT *)_PyFrame_GetCode(frame)->co_code_adaptive) + target; stack_pointer += -oparg; GOTO_UNWIND(); break; |