Skip to content
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

SR-8467: Fixing crash on AnyFunctionType::getExtInfo #26424

Merged

Conversation

LucianoPAlmeida
Copy link
Collaborator

Resolves SR-8467.
The type of the expression is an error type (closure_expr type='<<error type>>' on those cases.
So, the !Ty->getAs<AnyFunctionType>()->getExtInfo().isNoEscape() was assuming that it was always a FunctionType and crashing because of that.
This fix was just to check if the type is actually a function type.

All the files on the SR ticket were added as tests.
cc @jrose-apple

Copy link
Member

@xedin xedin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@xedin
Copy link
Member

xedin commented Jul 31, 2019

@swift-ci please smoke test

@xedin xedin merged commit 9b63583 into apple:master Jul 31, 2019
@xedin
Copy link
Member

xedin commented Jul 31, 2019

Thank you!

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.

None yet

2 participants