Skip to content

Revert "[modules] Fix miscompilation when using two RecordDecl definitions with the same name." #3369

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

etcwilde
Copy link
Member

@etcwilde etcwilde commented Oct 7, 2021

This reverts commit 9454716.

The patch being reverted results in swift-corelibs-foundation failing to
build due to being unable to find Glibc.pthread_mutex_t. The
declaration is defined in the module, but is also imported via
CDispatch. This patch marks any complete redeclarations of a given
declaration incomplete. Swift can't import incomplete declarations, so
it is ignored in ClangImporter::isVisibleFromModule. We will need some
mechanism of detecting redeclarations while not marking complete
declarations as being incomplete.

I'm going to revert this now so that we can continue making progress with the rebranch.
rdar://83990459

…tions with the same name."

This reverts commit 9454716.

The patch being reverted results in swift-corelibs-foundation failing to
build due to being unable to find `Glibc.pthread_mutex_t`. The
declaration is defined in the module, but is also imported via
CDispatch. This patch marks any complete redeclarations of a given
declaration incomplete. Swift can't import incomplete declarations, so
it is ignored in `ClangImporter::isVisibleFromModule`. We will need some
mechanism of detecting redeclarations while not marking complete
declarations as being incomplete.
@etcwilde etcwilde requested review from vsapsai and hyp October 7, 2021 20:49
@etcwilde
Copy link
Member Author

etcwilde commented Oct 7, 2021

@swift-ci please test

@etcwilde
Copy link
Member Author

etcwilde commented Oct 8, 2021

@swift-ci please test

@etcwilde
Copy link
Member Author

etcwilde commented Oct 8, 2021

swiftlang/swift#39660

@swift-ci please test macOS platform

@etcwilde
Copy link
Member Author

etcwilde commented Oct 8, 2021

@swift-ci please test macOS platform

@etcwilde
Copy link
Member Author

etcwilde commented Oct 9, 2021

This has made it through the llvm bits of the macOS tests, I am feeling pretty confident in merging this. We will still be testing everything for the rebranch anyway.

@etcwilde etcwilde merged commit 09506be into swiftlang:stable/20210726 Oct 9, 2021
@etcwilde etcwilde deleted the ewilde/rebranch/fix-missing-pthread_mutex_t branch January 26, 2022 16:34
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.

1 participant