Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When _PyOptimizer_BackEdge fails, restore next_instr
This fixes a nasty bug in exception handling. Apparently some part of the computation that determines where the exception handler is uses next_instr, which was pointing at the JUMP_BACKWARD instruction instead of where the error was occurring.
- Loading branch information
Could you move this into its own PR, so it doesn't get lost if we abandon this PR? (it is a draft)