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

Prefer capability types when lowering unions to LLVM IR types #723

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

arichardson
Copy link
Member

This ensures that a union containing a __int128 and a capability will
be lowered as a struct with one capability field instead of as an
i128. This fixes tag stripping when passing such unions to functions
by value instead of by reference.

Unions that contain an int128 and a capability are passed as a single
i128 instead of as a capability or indirectly.
This ensures that a union contain a __int128 and a capability will
be lowered as a struct with one capability field instead of as an
i128. This fixes tag stripping when passing such unions to functions
by value instead of by reference.
@arichardson
Copy link
Member Author

I believe I've addressed all comments, will merge on Monday unless there are further comments.

@arichardson arichardson merged commit d8fbfb2 into dev Feb 12, 2024
6 checks passed
@arichardson arichardson deleted the capability-union-types branch February 12, 2024 19:48
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