Skip to content

SILCombine: fix an ownership violation when replacing open existential apply arguments #80463

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 2 commits into from
Apr 3, 2025

Conversation

eeckstein
Copy link
Contributor

The value of the opened existential must outlive the apply. Otherwise the optimization creates invalid SIL.

Also, fix a wrong assert.

rdar://148259849

…l apply arguments

The value of the opened existential must outlive the apply. Otherwise the optimization creates invalid SIL.

rdar://148259849
@eeckstein eeckstein requested a review from meg-gupta April 2, 2025 15:37
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein
Copy link
Contributor Author

@swift-ci smoke test macos

2 similar comments
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test macos

@eeckstein
Copy link
Contributor Author

@swift-ci smoke test macos

Copy link
Contributor

@meg-gupta meg-gupta left a comment

Choose a reason for hiding this comment

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

lgtm

@eeckstein eeckstein merged commit ff14828 into swiftlang:main Apr 3, 2025
4 of 5 checks passed
@eeckstein eeckstein deleted the fix-sil-combine branch April 3, 2025 21:00
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