Skip to content

Typeref uniquing #2313

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 3 commits into from
Apr 26, 2016
Merged

Typeref uniquing #2313

merged 3 commits into from
Apr 26, 2016

Conversation

bitjammer
Copy link
Contributor

We'd like to be able to compare TypeRefs with pointer equality,
but we can't link LLVMSupport, so make a lightweight TypeRefID
like FoldingSetID, that only supports the input types necessary
to unique TypeRefs.

rdar://problem/25924875

@bitjammer
Copy link
Contributor Author

@swift-ci Please test

We'd like to be able to compare TypeRefs with pointer equality,
but we can't link LLVMSupport, so make a lightweight TypeRefID
like FoldingSetID, that only supports the input types necessary
to unique TypeRefs.

rdar://problem/25924875
Adding another 0 to the TypeRefID bits is useless on 32-bit
platforms.
@bitjammer
Copy link
Contributor Author

I beat the PR bot: all Apple platform tests passed successfully locally and Linux also passed. Merging.

@bitjammer bitjammer merged commit a5d396b into swiftlang:master Apr 26, 2016
@bitjammer bitjammer deleted the typeref-uniquing branch April 26, 2016 06:57
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.

1 participant