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

cranelift: Print error message when basic blocks are invalid #4591

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

afonso360
Copy link
Contributor

👋 Hey,

This PR changes the frontend to print not only the instruction that causes the block to be invalid, but what the actual issue is.

When working on the fuzzer this is helpful to pinpoint issues.

cc: @jameysharp

@github-actions github-actions bot added the cranelift Issues related to the Cranelift code generator label Aug 3, 2022
Copy link
Contributor

@jameysharp jameysharp left a comment

Choose a reason for hiding this comment

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

It's always nice to actually use diagnostic information that's already available. 😆

@jameysharp jameysharp merged commit a36a52a into bytecodealliance:main Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants