Skip to content

Fix KeyPathIterable derived conformances. #24567

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

Conversation

dan-zheng
Copy link
Contributor

Mark var allKeyPaths as @inlinable only when all stored properties are effectively public.

Otherwise, SIL verification fails:
Key path in serialized function cannot reference non-public property.

Mark `var allKeyPaths` as `@inlinable` only when all stored properties
are effectively public.

Otherwise, SIL verification fails:
"Key path in serialized function cannot reference non-public property".
@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label May 7, 2019
@dan-zheng dan-zheng requested review from rxwei and pschuh May 7, 2019 09:06
@dan-zheng
Copy link
Contributor Author

Verified that test/Sema/struct_key_path_iterable.swift passes.

@dan-zheng dan-zheng merged commit bbb36e4 into swiftlang:tensorflow-merge May 7, 2019
@dan-zheng dan-zheng deleted the tensorflow-merge-kpi branch May 7, 2019 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tensorflow This is for "tensorflow" branch PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants