Skip to content

Conversation

@xymus
Copy link
Contributor

@xymus xymus commented Feb 4, 2020

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

@xymus xymus requested review from nkcsgexi and slavapestov February 4, 2020 19:10
@xymus
Copy link
Contributor Author

xymus commented Feb 4, 2020

@swift-ci please smoke test

Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@slavapestov slavapestov left a 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.

@xymus xymus force-pushed the recover-in-getAllWitnessTables branch 2 times, most recently from 8ab9dad to 05f34b1 Compare February 7, 2020 00:57
@xymus
Copy link
Contributor Author

xymus commented Feb 7, 2020

@swift-ci Please smoke test

@xymus xymus force-pushed the recover-in-getAllWitnessTables branch from 05f34b1 to 9733627 Compare February 7, 2020 18:52
@xymus
Copy link
Contributor Author

xymus commented Feb 7, 2020

@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.
@xymus xymus force-pushed the recover-in-getAllWitnessTables branch from 9733627 to 6dc9dce Compare February 21, 2020 19:56
@xymus
Copy link
Contributor Author

xymus commented Feb 21, 2020

@swift-ci please smoke test

@xymus
Copy link
Contributor Author

xymus commented Feb 21, 2020

@swift-ci please test Windows platform

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