Skip to content

gh-138714: Don't assume next block has instructions when propagating line numbers#138770

Merged
DinoV merged 3 commits intopython:mainfrom
DinoV:dont_assume_instrs
Sep 17, 2025
Merged

gh-138714: Don't assume next block has instructions when propagating line numbers#138770
DinoV merged 3 commits intopython:mainfrom
DinoV:dont_assume_instrs

Conversation

@DinoV
Copy link
Copy Markdown
Contributor

@DinoV DinoV commented Sep 10, 2025

Currently we assume the next block will have instructions but there can now be empty blocks. We should find the next non-empty block as long as the chain only has 1 predecessor and update it.

Comment thread Python/flowgraph.c Outdated
@DinoV DinoV marked this pull request as ready for review September 17, 2025 16:00
@DinoV DinoV requested a review from markshannon as a code owner September 17, 2025 16:00
@DinoV DinoV merged commit e92599e into python:main Sep 17, 2025
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants