Skip to content

Commit 94e7969

Browse files
committed
AST: Handle new abstract conformances in ProtocolConformanceRef::mapConformanceOutOfContext()
1 parent 35a64c9 commit 94e7969

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/AST/ProtocolConformanceRef.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ ProtocolConformanceRef ProtocolConformanceRef::mapConformanceOutOfContext() cons
137137
MakeAbstractConformanceForGenericType(),
138138
SubstFlags::PreservePackExpansionLevel |
139139
SubstFlags::SubstitutePrimaryArchetypes);
140+
} else if (isAbstract()) {
141+
auto *abstract = getAbstract();
142+
return forAbstract(abstract->getType()->mapTypeOutOfContext(),
143+
abstract->getProtocol());
140144
}
141145

142146
return *this;

0 commit comments

Comments
 (0)