Skip to content

[6.2][Runtime] Add function_cast, switch from std::bit_cast. #80949

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
Apr 22, 2025

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented Apr 21, 2025

Cherry-pick #80516 to release/6.2.

Function types aren't always trivially copyable, e.g. with address-discriminated signed pointers on ARM64e. Introduce a function_cast helper and use that instead.

Function types aren't always trivially copyable, e.g. with address-discriminated signed pointers on ARM64e. Introduce a function_cast helper and use that instead.

(cherry picked from commit 185b739)
@mikeash mikeash requested a review from a team as a code owner April 21, 2025 16:48
@mikeash
Copy link
Contributor Author

mikeash commented Apr 21, 2025

@swift-ci please test

@mikeash
Copy link
Contributor Author

mikeash commented Apr 22, 2025

@swift-ci please test macos platform

@mikeash mikeash enabled auto-merge April 22, 2025 17:20
@mikeash mikeash merged commit 36d67e9 into swiftlang:release/6.2 Apr 22, 2025
5 checks passed
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