Skip to content

Sema: Infer '@_usableFromInline' imports by looking at references from inlinable functions #16326

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

jrose-apple
Copy link
Contributor

Since #16299 and #16317 are turning out to be tricky, let's get the incomplete fix in to at least cut down the number of people affected by this. Hopefully the rest of the fix will come soon.

rdar://problem/39338239

…m inlinable functions

Completes the fix for <rdar://problem/39338239>.
@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

@jrose-apple
Copy link
Contributor Author

I already reviewed this back in #16299, so this is mostly cursory. Will run more rigorous tests when cherry-picking to 4.2.

@jrose-apple jrose-apple merged commit ee6e190 into swiftlang:master May 3, 2018
@jrose-apple jrose-apple deleted the infer-imports-for-linking-partial branch May 3, 2018 02:23
jrose-apple added a commit to jrose-apple/swift that referenced this pull request May 3, 2018
…m inlinable functions (swiftlang#16326)

Basic fix for <rdar://problem/39338239>, but there are still some more cases we haven't handled yet.

(cherry picked from commit ee6e190)
jrose-apple added a commit to jrose-apple/swift that referenced this pull request May 3, 2018
…m inlinable functions (swiftlang#16326)

Basic fix for <rdar://problem/39338239>, but there are still some more cases we haven't handled yet.

(cherry picked from commit ee6e190)
jrose-apple added a commit to jrose-apple/swift that referenced this pull request May 4, 2018
…nces from inlinable functions (swiftlang#16326)"

This reverts commit ee6e190. It's not
sufficient to solve the problem, and the choices were to do something
more complicated, or just take a simple brute force approach. We're
going with the latter.
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.

2 participants