Skip to content

Assert unreachable cases in getBasicHeapTypeLUB #7735

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 1 commit into from
Jul 21, 2025

Conversation

Liedtke
Copy link
Contributor

@Liedtke Liedtke commented Jul 21, 2025

This currently seems to be a bit inconsistent with the null types that already use assertions / unreachable for cases that are already handled above:

      // Bottom types already handled.
      WASM_UNREACHABLE("unexpected basic type");

It isn't a very meaningful change, I'd just like to verify that I don't misunderstand the implementation. 🫣

@tlively tlively self-requested a review July 21, 2025 18:19
@tlively
Copy link
Member

tlively commented Jul 21, 2025

Thanks! This LGTM.

@tlively tlively enabled auto-merge (squash) July 21, 2025 18:21
@tlively tlively merged commit ce799f5 into WebAssembly:main Jul 21, 2025
16 checks passed
@Liedtke Liedtke deleted the heaptype_upper_bound branch July 22, 2025 08:03
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