Skip to content

Allow SPI access within the same module in checkAccess #31591

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 8, 2020

Conversation

xymus
Copy link
Contributor

@xymus xymus commented May 6, 2020

SPI decls were not considered as visible from the same module when searched with checkAccess. This affected the search for protocol conformances leading the compiler to complain wrongly about conformances or to synthesize == for an SPI type when there was already an implementation. The later caused an assert in SILGen.

rdar://problem/61043406
rdar://problem/61987739

rdar://problem/61043406
rdar://problem/61987739
@xymus
Copy link
Contributor Author

xymus commented May 6, 2020

@swift-ci Please smoke test

@xymus xymus requested review from nkcsgexi and beccadax May 6, 2020 21:10
@xymus xymus merged commit f46542f into swiftlang:master May 8, 2020
@xymus xymus deleted the spi-equatable branch May 8, 2020 18:29
@nkcsgexi
Copy link
Contributor

Sorry I missed this because I was on vacation. LGTM!

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