Skip to content

Commit 5e7a63f

Browse files
committed
[ProtocolConformanceRef] Propagate concrete-lookup hack yet further.
Fixes rdar://problem/31482855.
1 parent 96b01c4 commit 5e7a63f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/AST/ProtocolConformance.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ ProtocolConformanceRef::subst(Type origType,
153153
return ProtocolConformanceRef(lookupResults.front());
154154
}
155155

156-
llvm_unreachable("Invalid conformance substitution");
156+
// FIXME: Rip this out once ConformanceAccessPaths are plumbed through
157+
auto *M = proto->getParentModule();
158+
return *M->lookupConformance(substType, proto, nullptr);
157159
}
158160

159161
Type

0 commit comments

Comments
 (0)