Skip to content

[AST] Fix a crash in UnqualifiedLookup #18279

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 27, 2018

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jul 27, 2018

Add null type check for Self type in UnqualifiedLookup. It seems this doesn't happen in normal compilation. But when code-completion happens in inactive conditional compilation block, since surrounding context hasn't been typechecked, Self type can be null.

rdar://problem/41234606

Add null type check for `Self` type in `UnqualifiedLookup`. It seems this
doesn't happen in normal compilation. But when code-completion happens in
inactive conditional compilation block, since surrounding context hasn't
been typechecked, `Self` type can be null.

rdar://problem/41234606
@rintaro
Copy link
Member Author

rintaro commented Jul 27, 2018

@swift-ci Please smoke test

@rintaro rintaro requested a review from slavapestov July 27, 2018 11:11
Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

LGTM!

@akyrtzi akyrtzi merged commit bae0481 into swiftlang:master Jul 27, 2018
@rintaro rintaro deleted the ide-complete-rdar41234606 branch July 30, 2018 01:19
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.

3 participants