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

[NFC] Add the type of the Expression when eliding it #6362

Merged
merged 4 commits into from
Feb 28, 2024

Conversation

kripken
Copy link
Member

@kripken kripken commented Feb 28, 2024

In some cases we don't print an Expression in full if it is unreachable, so
we print something instead as a placeholder. This happens in unreachable
code when the children don't provide enough info to print the parent (e.g.
a StructGet with an unreachable reference doesn't know what struct type
to use).

This PR prints out the name of the Expression type of such things, which
can help debugging sometimes. See updated test text for examples.

@kripken kripken requested a review from tlively February 28, 2024 21:32
@kripken
Copy link
Member Author

kripken commented Feb 28, 2024

Good idea, done.

@kripken kripken enabled auto-merge (squash) February 28, 2024 23:09
@kripken kripken merged commit a941846 into WebAssembly:main Feb 28, 2024
14 checks passed
@kripken kripken deleted the comment.type branch February 28, 2024 23:53
@gkdn gkdn mentioned this pull request Aug 31, 2024
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