Skip to content

[SILGen] Don't peephole closures with abstraction differences in the thrown error #71577

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

Conversation

DougGregor
Copy link
Member

The prolog and epilog code in SILGen is not set up to deal with abstraction differences in the thrown error type of closures, so disable the peephole optimization for closure literals.

Fixes #71401 / rdar://122366566, which I've stared at for waaaaay too many hours.

…thrown error

The prolog and epilog code in SILGen is not set up to deal with
abstraction differences in the thrown error type of closures, so disable
the peephole optimization for closure literals.

Fixes swiftlang#71401 / rdar://122366566,
which I've stared at for waaaaay too many hours.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor merged commit eeeb8c3 into swiftlang:main Feb 13, 2024
@DougGregor DougGregor deleted the silgen-no-peeping-typed-throws-closures branch February 13, 2024 16:53
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.

Crash with typed throws and closure
1 participant