AST: Remove error path that was causing crashes

This commit is contained in:
Slava Pestov
2016-12-20 03:33:37 -08:00
parent b6d8bbb698
commit 2b05dd9d85
3 changed files with 13 additions and 6 deletions

View File

@@ -817,11 +817,6 @@ Module::lookupConformance(Type type, ProtocolDecl *protocol,
// the specialized conformance.
auto substitutions = type->gatherAllSubstitutions(this, resolver,
explicitConformanceDC);
for (auto sub : substitutions) {
if (sub.getReplacement()->hasError())
return None;
}
// Create the specialized conformance entry.
auto result = ctx.getSpecializedConformance(type, conformance,