Skip to content

Fix the signature of Builtin.Once() to take callback with an argument, to match swift_once() #41353

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 1 commit into from
Feb 12, 2022

Conversation

kubamracek
Copy link
Contributor

This is to fix a ptrauth mismatch when the callee, swift_once, expected a void(*)(void*) argument, but currently Builtin.Once is passing the callback as a void(*)().

@kubamracek
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 83f17031bacaa94e8f998b3f32b6fd9aa0872a9a

@kubamracek
Copy link
Contributor Author

@swift-ci please test Windows platform

@kubamracek
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 28d9841

@kubamracek
Copy link
Contributor Author

@swift-ci please test macOS platform

@kubamracek kubamracek merged commit 5d1ddbf into swiftlang:main Feb 12, 2022
@kubamracek kubamracek deleted the once-with-arg branch February 12, 2022 19:18
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.

3 participants