GH-115419: Move setting the instruction pointer to error exit stubs (GH-118088)

This commit is contained in:
Mark Shannon 2024-04-24 14:41:30 +01:00 committed by GitHub
parent 77cd0428b6
commit 83235f7791
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 5 deletions

View file

@ -978,6 +978,7 @@ prepare_for_execution(_PyUOpInstruction *buffer, int length)
current_error_target = target;
make_exit(&buffer[next_spare], _ERROR_POP_N, 0);
buffer[next_spare].oparg = popped;
buffer[next_spare].operand = target;
next_spare++;
}
buffer[i].error_target = current_error;