Skip to content

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
@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