Skip to content

Devirtualizer: fix de-virtualization of begin_apply #78886

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
Jan 25, 2025

Conversation

eeckstein
Copy link
Contributor

@eeckstein eeckstein commented Jan 24, 2025

Handle the special case of an guaranteed return value with no uses. Fixes an assertion crash.

Unfortunately I don't have an isolated test case for this. But this problem showed up in the Interpreter/moveonly_read_modify_coroutines.swift test with OSSA modules and will therefore be tested by this test once we enable OSSA modules.

This is part of rdar://140229560.

Handle the special case of an guaranteed return value with no uses.
Fixes an assertion crash.

Unfortunately I don't have an isolated test case for this.
But this problem showed up in the `Interpreter/moveonly_read_modify_coroutines.swift` test with OSSA modules and will therefore be tested by this test once we enable OSSA modules.
@eeckstein
Copy link
Contributor Author

@swift-ci test

@meg-gupta
Copy link
Contributor

LGTM.

@eeckstein eeckstein merged commit 1bd2a38 into swiftlang:main Jan 25, 2025
5 checks passed
@eeckstein eeckstein deleted the fix-devirtualize-begin-apply branch January 25, 2025 07:20
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