Skip to content

Fix MethodError in IR validator #58425

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 3 commits into from
May 16, 2025

Conversation

mlechu
Copy link
Member

@mlechu mlechu commented May 15, 2025

Invalid IR in a debug build makes the validator call Core.println with a Base.TTY, which makes a bad day worse.

I'm not sure about the usefulness of this file—I think moving it out of bootstrap would let us make it more powerful—but just fix the error for now. Also remove a couple of unused expr heads as of #57965.

@vtjnash
Copy link
Member

vtjnash commented May 15, 2025

Refs #56645

Copy link
Member

@topolarity topolarity left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

I think moving it out of bootstrap would let us make it more powerful

Any specific ideas? I have no problem opting out of bootstrap, but I'm surprised that a verifier pass would need much more than what the compiler itself needs

@topolarity topolarity added the merge me PR is reviewed. Merge when all tests are passing label May 15, 2025
@IanButterworth IanButterworth merged commit 7ca634a into JuliaLang:master May 16, 2025
8 checks passed
@oscardssmith oscardssmith added bugfix This change fixes an existing bug and removed merge me PR is reviewed. Merge when all tests are passing labels May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants