Skip to content

Conversation

kripken
Copy link
Member

@kripken kripken commented Sep 22, 2025

No description provided.

@kripken kripken requested a review from tlively September 22, 2025 21:23
// create one if that type would fit |type| which is what we must emit at the
// end.
Expression* descRef = nullptr;
if (auto desc = refType.getHeapType().getDescriptorType();
Copy link
Member

Choose a reason for hiding this comment

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

The descriptor type is tied to the cast output type, so I believe this could be auto desc = type.getHeapType().getDescriptorType(). Then we wouldn't have to check that refType <: type below and could emit it no matter what the relationship between type and refType.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@kripken kripken merged commit 50339e1 into WebAssembly:main Sep 23, 2025
16 checks passed
@kripken kripken deleted the fuzz.cd branch September 23, 2025 19:34
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