Skip to content

Commit d5d671f

Browse files
authored
Merge pull request #8597 from DougGregor/rdar-31482855
[ProtocolConformanceRef] Propagate concrete-lookup hack yet further.
2 parents 1977341 + 5e7a63f commit d5d671f

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)