Skip to content

Fix LifetimeDependenceDiagnostics to handle invalid SIL types #75428

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
Jul 24, 2024

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Jul 23, 2024

Invalid types are not considered Escapable. This makes it difficult to make any assumptions about nonescapable types.

Fixes rdar://132348528 (Fix LifetimeDependenceDiagnostics to handle invalid SIL types)

Invalid types are not considered Escapable. This makes it difficult to make any
assumptions about nonescapable types.

Fixes rdar://132348528 (Fix LifetimeDependenceDiagnostics to handle invalid SIL types)
@atrick atrick requested a review from tshortli July 23, 2024 23:04
@atrick
Copy link
Contributor Author

atrick commented Jul 23, 2024

@swift-ci test

@atrick atrick enabled auto-merge July 23, 2024 23:05
@atrick atrick merged commit 287b07a into swiftlang:main Jul 24, 2024
5 checks passed
tshortli added a commit to tshortli/swift that referenced this pull request Aug 12, 2024
In lazy typechecking mode, errors in the program may only be discovered during
SILGen, which can leave the SIL in a bad state for subsequent stages of
compilation. If errors were detected, skip SIL verification and optimization to
prevent knock-on failures.

Partially reverts swiftlang#75428, which included
a more targeted fix for one of the possible knock-on effects of bad SIL coming
out of SILGen.

Resolves rdar://132107752.
@atrick atrick deleted the fix-invalid-type branch October 16, 2024 21:09
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