Skip to content

[5.5] [IDE] Fix another GenericFunctionType subst crasher #38517

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

hamishknight
Copy link
Contributor

5.5 cherry-pick of the first commit in #38503


When matching methods for the conforming types SourceKit request, we were using the method's interface type in a call to TypeBase::getTypeOfMember, which could lead to crashes when calling subst with a GenericFunctionType. Instead, pass the result type only, as that's all we want anyway.

rdar://77259607

Previously we were defaulting to the method's
interface type, which could lead to calling `subst`
with a GenericFunctionType. Instead, pass the
result type only, as that's all we want anyway.

rdar://77259607
@hamishknight hamishknight requested a review from a team as a code owner July 20, 2021 21:28
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@akyrtzi akyrtzi merged commit 0d3e6f3 into swiftlang:release/5.5 Jul 21, 2021
@hamishknight hamishknight deleted the another-one-bites-the-subst-5.5 branch July 21, 2021 09:03
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants