-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix block graph for generators in 3.12
The fix from 62c11b5 wasn't quite correct. It assumed CLEANUP_THROW had a preceding JUMP_BACKWARD, when it's actually followed by one. E.g. for these opcodes: 28 JUMP_BACKWARD --> belongs to END_ASYNC_FOR 30 CLEANUP_THROW 32 JUMP_BACKWARD --> belongs to CLEANUP_THROW 34 END_ASYNC_FOR The incorrect assumption lead to incorrect JUMP_BACKWARD instructions being elided and ultimately to a crash. This fix comes with a new test case to hopefully prevent regressions in the future. PiperOrigin-RevId: 672551017
- Loading branch information
1 parent
4d12d8e
commit 1b3f2f3
Showing
2 changed files
with
88 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters