Skip to content

Remove _typeByName lookup of _FoundationNSNumberInitializer #817

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

Conversation

jmschonfeld
Copy link
Contributor

With swiftlang/swift-corelibs-foundation#5045, Foundation now dynamically replaces the implementation of this function when it is present so there is no need to perform a _typeByName lookup. We can safely remove this now and just return nil because we know that if this implementation is used, (the correct) Foundation is not loaded.

@jmschonfeld
Copy link
Contributor Author

@swift-ci please test

@jmschonfeld jmschonfeld merged commit a57b06e into swiftlang:main Aug 2, 2024
3 checks passed
@jmschonfeld jmschonfeld deleted the remove-type-by-name-nsnumber branch August 2, 2024 20:56
jmschonfeld added a commit to jmschonfeld/swift-foundation that referenced this pull request Aug 5, 2024
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