-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[Serialization] Recover from a missing conforming type in a protocol conformance #29639
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
Conversation
|
@swift-ci please smoke test |
lib/Serialization/DeserializeSIL.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you add some comments why this error may happen? Otherwise LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added documentation on the prototype for readWitnessTableChecked and on the only client readWitnessTables.
slavapestov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a test case.
8ab9dad to
05f34b1
Compare
|
@swift-ci Please smoke test |
05f34b1 to
9733627
Compare
|
@swift-ci Please smoke test |
…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
…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.
9733627 to
6dc9dce
Compare
|
@swift-ci please smoke test |
|
@swift-ci please test Windows platform |
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