Skip to content

CSE: fix checking convention of tuple apply results #72116

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
Mar 6, 2024

Conversation

eeckstein
Copy link
Contributor

We didn't catch the case where a function returns a tuple where at least one of the tuple elements is returned as owned. In such a case the apply must not be cse'd.

Fixes a miscompile which results in an over-release.
rdar://121597250

We didn't catch the case where a function returns a tuple where at least one of the tuple elements is returned as `owned`.
In such a case the apply must not be cse'd.

Fixes a miscompile which results in an over-release.
rdar://121597250
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein merged commit 857a6c3 into swiftlang:main Mar 6, 2024
@eeckstein eeckstein deleted the fix-cse-apply branch March 6, 2024 16:29
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