Skip to content

Conversation

@xymus
Copy link
Contributor

@xymus xymus commented Apr 2, 2020

Cherry-pick of #29639.

Description: Non-compilation paths used by sil-opt try to read private declarations and fail on types declared behind implementation-only imports.

Scope: This should affect the sil-opt tool and might affect other non-compilation paths like the indexing phase.

Origin: A change in a framework made the compiler synthesized code for a C enum behind an implementation-only import.

Risk: Low, this fix only affects path that would otherwise have failed.

rdar://problem/61209195

@xymus xymus requested a review from a team as a code owner April 2, 2020 22:04
@xymus
Copy link
Contributor Author

xymus commented Apr 2, 2020

@swift-ci Please test

@swift-ci
Copy link
Contributor

swift-ci commented Apr 2, 2020

Build failed
Swift Test Linux Platform
Git Sha - 228f3e3bdfa92652da3063e32a0ed14d53de71a4

xymus added 3 commits April 2, 2020 15:12
…conformance

We saw this failure with a Clang module imported @_implementationOnly
with synthesized conformances by the ClangImporter. It caused
issues only in sil-opt as it reads all the witness tables.

rdar://problem/58924131
rdar://problem/61209195
…ules

The diagnostic function crashed as it did not take into account the
DebuggerSupport options as the site reporting the missing dependency did.
In this context, missing implementation-only imported dependencies are
ignored only if DebuggerSupport is set.
@xymus xymus force-pushed the recover-in-getAllWitnessTables-5.2 branch from 228f3e3 to f4efec8 Compare April 2, 2020 22:12
@xymus
Copy link
Contributor Author

xymus commented Apr 2, 2020

@swift-ci Please test

@swift-ci
Copy link
Contributor

swift-ci commented Apr 2, 2020

Build failed
Swift Test Linux Platform
Git Sha - 228f3e3bdfa92652da3063e32a0ed14d53de71a4

@swift-ci
Copy link
Contributor

swift-ci commented Apr 2, 2020

Build failed
Swift Test OS X Platform
Git Sha - 228f3e3bdfa92652da3063e32a0ed14d53de71a4

@najacque najacque merged commit 960408c into swiftlang:swift-5.2-branch Apr 3, 2020
@xymus xymus deleted the recover-in-getAllWitnessTables-5.2 branch October 31, 2022 21:03
@AnthonyLatsis AnthonyLatsis added swift 5.2 🍒 release cherry pick Flag: Release branch cherry picks labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍒 release cherry pick Flag: Release branch cherry picks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants