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] Make Literal::makeNull take a HeapType #4664

Merged
merged 1 commit into from May 13, 2022
Merged

[NFC] Make Literal::makeNull take a HeapType #4664

merged 1 commit into from May 13, 2022

Conversation

kripken
Copy link
Member

@kripken kripken commented May 12, 2022

Taking a Type is redundant as we only care about the heap type -
the nullability must be Nullable.

This avoids needing an assertion in the function, that is, it makes
the API more type-safe.

@kripken kripken requested review from tlively and aheejin May 12, 2022 21:07
@kripken kripken marked this pull request as ready for review May 12, 2022 21:35
@kripken kripken merged commit 48eb700 into main May 13, 2022
@kripken kripken deleted the nullheap branch May 13, 2022 17:11
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.

None yet

3 participants