Skip to content

[stdlib] remove pointer conversion from inlined runtime code #68715

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
Sep 23, 2023

Conversation

glessard
Copy link
Contributor

@glessard glessard commented Sep 22, 2023

This removes an inout-to-pointer conversion for inlinable runtime code that is completely expressed in Swift.

If pointer conversions were to be completely disallowed in pure Swift code, the presence of this pointer conversion in a pre-existing standard library would prevent the compiler from building from scratch.

After this change, we get the same generated assembly as before when compiling in release mode.

Addresses rdar://115912430

This removes an inout-to-pointer conversion for runtime code that is completely expressed in Swift.
@glessard
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@Catfish-Man Catfish-Man left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard to argue with "the generated asm is the same". Seems fine to me

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