Skip to content

Commit 9ad5af6

Browse files
committed
Serialization: Correctly set conforming type in readNormalProtocolConformance()
Use the self interface type instead of the declared interface type, to get the right type for tuple conformances and the DistributedActor-as-Actor abstract conformance.
1 parent 2d1c6f5 commit 9ad5af6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Serialization/Deserialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ ProtocolConformanceDeserializer::readNormalProtocolConformance(
987987

988988
assert(!isa<ClangModuleUnit>(dc->getModuleScopeContext())
989989
&& "should not have serialized a conformance from a clang module");
990-
Type conformingType = dc->getDeclaredInterfaceType();
990+
Type conformingType = dc->getSelfInterfaceType();
991991
PrettyStackTraceType trace(ctx, "reading conformance for", conformingType);
992992

993993
auto protoOrError = MF.getDeclChecked(protoID);

0 commit comments

Comments
 (0)