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

Fix #18238: Emit an explicit LineNumber for empty else branches. #20814

Closed
wants to merge 1 commit into from

Conversation

sjrd
Copy link
Member

@sjrd sjrd commented Jun 26, 2024

If we don't, the code generated for the else branch remains associated with the last instruction of the then branch, which yields to confusing debugging sessions.

If we don't, the code generated for the `else` branch remains
associated with the last instruction of the `then` branch, which
yields to confusing debugging sessions.
@sjrd
Copy link
Member Author

sjrd commented Jun 26, 2024

Ah, this had already been done, with better handling of the corner cases, in #20431. Well at least the fact that I fixed it in essentially the same way means it's probably correct, so I merged #20431.

@sjrd sjrd closed this Jun 26, 2024
@sjrd sjrd deleted the fix-i18238 branch June 26, 2024 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants