mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge branch 'master' into add-access-tracking-flag
This commit is contained in:
@@ -1608,7 +1608,9 @@ Serializer::writeConformance(ProtocolConformanceRef conformanceRef,
|
||||
switch (conformance->getKind()) {
|
||||
case ProtocolConformanceKind::Normal: {
|
||||
auto normal = cast<NormalProtocolConformance>(conformance);
|
||||
if (!isDeclXRef(getDeclForContext(normal->getDeclContext()))) {
|
||||
if (!isDeclXRef(getDeclForContext(normal->getDeclContext()))
|
||||
&& !isa<ClangModuleUnit>(normal->getDeclContext()
|
||||
->getModuleScopeContext())) {
|
||||
// A normal conformance in this module file.
|
||||
unsigned abbrCode = abbrCodes[NormalProtocolConformanceIdLayout::Code];
|
||||
NormalProtocolConformanceIdLayout::emitRecord(Out, ScratchRecord,
|
||||
|
||||
Reference in New Issue
Block a user