Skip to content

Commit 3b5c2a1

Browse files
committed
Sema: Fix yet another call to SubstitutionMap::getProtocolSubstitutions()
The conforming type didn't match the conformance, which is going to be flagged by SubstitutionMap::verify().
1 parent 4d87f25 commit 3b5c2a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckConcurrency.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4943,7 +4943,7 @@ getIsolationFromWitnessedRequirements(ValueDecl *value) {
49434943
// Substitute into the global actor type.
49444944
auto conformance = std::get<0>(isolated);
49454945
auto requirementSubs = SubstitutionMap::getProtocolSubstitutions(
4946-
conformance->getProtocol(), dc->getSelfTypeInContext(),
4946+
conformance->getProtocol(), dc->getSelfInterfaceType(),
49474947
ProtocolConformanceRef(conformance));
49484948
Type globalActor = isolation.getGlobalActor().subst(requirementSubs);
49494949
if (!globalActorTypes.insert(globalActor->getCanonicalType()).second)

0 commit comments

Comments
 (0)