mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Don't emit protocol conformance cross-references for conformances owned by Clang modules."
This reverts commit r20828. Swift SVN r20831
This commit is contained in:
@@ -788,11 +788,7 @@ Serializer::writeConformance(const ProtocolDecl *protocol,
|
|||||||
auto conf = cast<NormalProtocolConformance>(conformance);
|
auto conf = cast<NormalProtocolConformance>(conformance);
|
||||||
|
|
||||||
// If the conformance comes from another module, write a reference to it.
|
// If the conformance comes from another module, write a reference to it.
|
||||||
// We don't do this for Clang modules because there might not be
|
if (conformance->getDeclContext()->getParentModule() != M) {
|
||||||
// anywhere to store the conformance. It will simply be regenerated.
|
|
||||||
if (conformance->getDeclContext()->getParentModule() != M &&
|
|
||||||
!ClangModuleUnit::hasClangModule(
|
|
||||||
conformance->getDeclContext()->getParentModule())) {
|
|
||||||
unsigned abbrCode = abbrCodes[XRefProtocolConformanceLayout::Code];
|
unsigned abbrCode = abbrCodes[XRefProtocolConformanceLayout::Code];
|
||||||
DeclID protoID = addDeclRef(conf->getProtocol());
|
DeclID protoID = addDeclRef(conf->getProtocol());
|
||||||
DeclID typeID = addDeclRef(conf->getType()->getAnyNominal());
|
DeclID typeID = addDeclRef(conf->getType()->getAnyNominal());
|
||||||
|
|||||||
Reference in New Issue
Block a user