Skip to content

[5.1][Diagnostics] Don't crash when gathering info about property wrapper … #26629

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
Oct 4, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Aug 13, 2019

…in l-value base

  • Explanation:

Make TypeBase::getTypeOfMember more resilient to base type
being either an l-value (which we can look through), or an
error type - in such can it would return immediately.

  • Issue: rdar://problem/54184846

  • Scope: Constraint solver in diagnostic mode.

  • Risk: Very Low.

  • Testing: Added compiler regression tests.

  • Reviewed by: @DougGregor

Resolves: rdar://problem/54184846
(cherry picked from commit c67cf88)

@xedin xedin requested a review from a team as a code owner August 13, 2019 00:36
@xedin
Copy link
Contributor Author

xedin commented Aug 13, 2019

@swift-ci please test

@xedin xedin changed the title [Diagnostics] Don't crash when gathering info about property wrapper … [5.1][Diagnostics] Don't crash when gathering info about property wrapper … Aug 13, 2019
…in l-value base

Make `TypeBase::getTypeOfMember` more resilient to base type
being either an l-value (which we can look through), or an
error type - in such can it would return immediately.

Resolves: rdar://problem/54184846
(cherry picked from commit c67cf88)
(cherry picked from commit 5c4b349eb6cae5c0f128a17ee7dddda9e7f5ab1a)
@xedin xedin force-pushed the rdar-54184846-5.1 branch from 5c4b349 to b483549 Compare October 3, 2019 22:01
@xedin
Copy link
Contributor Author

xedin commented Oct 3, 2019

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Oct 4, 2019

Build failed
Swift Test OS X Platform
Git Sha - b483549

@DougGregor
Copy link
Member

That failure doesn't make sense:

fatal error: error in backend: Unexpected end of file

@DougGregor
Copy link
Member

@swift-ci please test macOS

@xedin xedin merged commit 9acad62 into swiftlang:swift-5.1-branch Oct 4, 2019
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.

4 participants