Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-120367: fix bug where compiler detects redundant jump after pseudo op replacement #120714

Merged
merged 3 commits into from
Jun 18, 2024

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Jun 18, 2024

Fixes #120367.

This can't happen with an AST that comes from real code, because the try can't be on the same line as the following instruction. It can happen with a synthetic AST though.

@iritkatriel iritkatriel requested review from carljm and removed request for markshannon June 18, 2024 21:30
@iritkatriel iritkatriel added type-bug An unexpected behavior, bug, or error needs backport to 3.13 bugs and security fixes labels Jun 18, 2024
@iritkatriel iritkatriel enabled auto-merge (squash) June 18, 2024 21:45
@iritkatriel iritkatriel enabled auto-merge (squash) June 18, 2024 21:47
@iritkatriel iritkatriel merged commit b7f4789 into python:main Jun 18, 2024
36 checks passed
@miss-islington-app
Copy link

Thanks @iritkatriel for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 18, 2024
…pseudo op replacement (pythonGH-120714)

(cherry picked from commit b7f4789)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Jun 18, 2024

GH-120716 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jun 18, 2024
iritkatriel pushed a commit that referenced this pull request Jun 18, 2024
mrahtz pushed a commit to mrahtz/cpython that referenced this pull request Jun 30, 2024
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no_redundant_jumps: Assertion `0' failed
2 participants