Skip to content

[AST] Return null type in AbstractClosureExpr::getResultType if getType is null #37341

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
May 11, 2021

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 10, 2021

If getType returns a null type, also return a null type in AbstractClosureExpr::getResultType instead of crashing.

Fixes rdar://77565983

…getType` is `null`

If `getType` returns a `null` type, also return a `null` type in `AbstractClosureExpr::getResultType` instead of crashing.

Fixes rdar://77565983
@ahoppen ahoppen requested a review from xedin May 10, 2021 13:28
@ahoppen
Copy link
Member Author

ahoppen commented May 10, 2021

@swift-ci Please test

@xedin
Copy link
Contributor

xedin commented May 10, 2021

@swift-ci please test Windows platform

@ahoppen ahoppen merged commit 499844e into swiftlang:main May 11, 2021
@ahoppen ahoppen deleted the pr/check-null-getresulttype branch May 11, 2021 11:10
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