Skip to content

Don't keep generic versions of PtrAuth functions alive #69373

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

aschwaighofer
Copy link
Contributor

We don't support generating code for ptrauth builtins with generic inputs (or non-constant inputs). We rely on specialization/inlining for such code to work.

After a recent commit (#68843 ) code in IRGen keeps internal unreferenced functions alive for debugging purposes.

This is a problem for the generic functions in PtrAuth.swift using ptrauth builtins.

Opt out of this new behavior by sprinkling some pixie dust.

Fixes debug swift standard library builds targeting arm64e.

rdar://117411740

We don't support generating code for ptrauth builtins with generic
inputs (or non-constant inputs). We rely on specialization/inlining for
such code to work.

After a recent commit (swiftlang#68843 ) code in IRGen keeps internal unreferenced
functions alive for debugging purposes.

This is a problem for the generic functions in PtrAuth.swift using
ptrauth builtins.

Opt out of this new behavior by sprinkling some pixie dust.

Fixes debug swift standard library builds targeting arm64e.

rdar://117411740
@aschwaighofer aschwaighofer requested a review from a team as a code owner October 24, 2023 18:54
@aschwaighofer
Copy link
Contributor Author

@swift-ci smoke test

@aschwaighofer
Copy link
Contributor Author

@swift-ci smoke test windows

@aschwaighofer aschwaighofer merged commit 3ce2d3a into swiftlang:main Oct 25, 2023
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.

1 participant