Skip to content

gh-101517: fix line number propagation in code generated for except* - #103550

Merged
iritkatriel merged 5 commits into
python:mainfrom
iritkatriel:propagate_linenos
Apr 24, 2023
Merged

iritkatriel merged 5 commits into
python:mainfrom
iritkatriel:propagate_linenos

Conversation

@iritkatriel

@iritkatriel iritkatriel commented Apr 14, 2023 •

Copy link
Copy Markdown
Member

We had some virtual instructions with no line number because the whole block is virtual and it has two predecessors.
This PR changes the control flow graph a little to avoid that.

We need to think about how to make the compiler do this automatically, but for now this fixes the bug that was reported.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants