mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
GH-115419: Move setting the instruction pointer to error exit stubs (GH-118088)
This commit is contained in:
parent
77cd0428b6
commit
83235f7791
5 changed files with 6 additions and 5 deletions
|
@ -554,9 +554,6 @@ remove_unneeded_uops(_PyUOpInstruction *buffer, int buffer_size)
|
|||
needs_ip = true;
|
||||
may_have_escaped = true;
|
||||
}
|
||||
if (_PyUop_Flags[opcode] & HAS_ERROR_FLAG) {
|
||||
needs_ip = true;
|
||||
}
|
||||
if (needs_ip && last_set_ip >= 0) {
|
||||
if (buffer[last_set_ip].opcode == _CHECK_VALIDITY) {
|
||||
buffer[last_set_ip].opcode = _CHECK_VALIDITY_AND_SET_IP;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue