Skip to content

[SR-5926] Remove Builtin.UnknownObject from the AST and SIL layers #48485

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

Closed
belkadan opened this issue Sep 18, 2017 · 3 comments
Closed

[SR-5926] Remove Builtin.UnknownObject from the AST and SIL layers #48485

belkadan opened this issue Sep 18, 2017 · 3 comments
Labels
compiler The Swift compiler itself improvement

Comments

@belkadan
Copy link
Contributor

Previous ID SR-5926
Radar None
Original Reporter @belkadan
Type Improvement
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Improvement
Assignee None
Priority Medium

md5: 36242154e2d697735e7333fa8f4ea47c

Issue Description:

Builtin.UnknownObject represents an opaque pointer value that uses objc_retain for its refcounting. It's pretty much equivalent to AnyObject at this point, so the only reason to keep it around is to have easy access to a prebuilt value witness table for the type. That can be handled entirely by IRGen.

@belkadan
Copy link
Contributor Author

#11984 tracks removing the last use of Builtin.UnknownObject from the stdlib.

@typesanitizer
Copy link

For future reference, there's a PR which has a bunch of implementation: #12325

@belkadan
Copy link
Contributor Author

belkadan commented Nov 1, 2019

Oh, I finished this in #27378 !

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler itself improvement
Projects
None yet
Development

No branches or pull requests

2 participants