-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Runtime] Rename swift_unknown* functions to swift_unknownObject*. #18737
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
[Runtime] Rename swift_unknown* functions to swift_unknownObject*. #18737
Conversation
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
These functions don't accept local variable heap memory, although the names make it sound like they work on anything. When you try, they mistakenly identify such things as ObjC objects, call through to the equivalent objc_* function, and crash confusingly. This adds Object to the name of each one to make it more clear what they accept. rdar://problem/37285743
659cfdc
to
46309d9
Compare
@swift-ci please test |
Build failed |
Build failed |
Build failed |
@swift-ci please test linux |
Build failed |
@swift-ci please test linux |
Build failed |
@swift-ci please test linux |
These functions don't accept local variable heap memory, although the names make it sound like they work on anything. When you try, they mistakenly identify such things as ObjC objects, call through to the equivalent objc_* function, and crash confusingly. This adds Object to the name of each one to make it more clear what they accept.
rdar://problem/37285743