Skip to content

[5.3] FunctionSignatureOptimization: fix a miscompile in owned->guaranteed return value specialization #31661

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
May 12, 2020

Conversation

eeckstein
Copy link
Contributor

FSO can handle self-recursive calls.
But this only works if the result of the self-recursive call is actually returned and not used otherwise.
The check for this was missing.

https://bugs.swift.org/browse/SR-12677
rdar://problem/62895040

This is a cherry-pick of #31581

…return value specialization

FSO can handle self-recursive calls.
But this only works if the result of the self-recursive call is actually returned and not used otherwise.
The check for this was missing.

https://bugs.swift.org/browse/SR-12677
rdar://problem/62895040
@eeckstein eeckstein requested a review from a team as a code owner May 8, 2020 18:47
@eeckstein
Copy link
Contributor Author

@swift-ci test

@theblixguy theblixguy added the r5.3 label May 8, 2020
@tkremenek tkremenek merged commit 0b7477c into swiftlang:release/5.3 May 12, 2020
@eeckstein eeckstein deleted the fix-fso-5.3 branch May 12, 2020 18:39
@AnthonyLatsis AnthonyLatsis added swift 5.3 🍒 release cherry pick Flag: Release branch cherry picks labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants