mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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);
|
||||
|
||||
// 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
|
||||
// anywhere to store the conformance. It will simply be regenerated.
|
||||
if (conformance->getDeclContext()->getParentModule() != M &&
|
||||
!ClangModuleUnit::hasClangModule(
|
||||
conformance->getDeclContext()->getParentModule())) {
|
||||
if (conformance->getDeclContext()->getParentModule() != M) {
|
||||
unsigned abbrCode = abbrCodes[XRefProtocolConformanceLayout::Code];
|
||||
DeclID protoID = addDeclRef(conf->getProtocol());
|
||||
DeclID typeID = addDeclRef(conf->getType()->getAnyNominal());
|
||||
|
||||
Reference in New Issue
Block a user