Skip to content

Delete dead code in the interpreter #114890

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

Merged
merged 2 commits into from
Apr 23, 2025
Merged

Delete dead code in the interpreter #114890

merged 2 commits into from
Apr 23, 2025

Conversation

MichalStrehovsky
Copy link
Member

I think this is now unreachable since the first if check would cover this.

I think this is now unreachable since the first `if` check would cover this.
@Copilot Copilot AI review requested due to automatic review settings April 22, 2025 07:20
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR deletes a block of dead code in the interpreter that was handling byref conversions, which is now unreachable due to an earlier check.

  • Removes an unreachable branch handling byref conversions with conv_i/conv_u and ldind/ldobj opcodes.
  • Simplifies control flow in TypePreinit.

Copy link
Contributor

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

@jkotas jkotas merged commit 2474c62 into main Apr 23, 2025
91 of 93 checks passed
@jkotas jkotas deleted the MichalStrehovsky-patch-2 branch April 23, 2025 05:31
@github-actions github-actions bot locked and limited conversation to collaborators May 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants