[GSB] Clean up and audit uses of ArchetypeResolutionKind.

Use ArchetypeResolutionKind::CompleteWellFormed whenever we need to
ask questions about the potential archetype, and
ArchetypeResolutionKind::WellFormed when we need only evaluate whether
there is a legitimate type with that name (and possibly get a handle
to it).
This commit is contained in:
Doug Gregor
2017-06-30 09:47:05 -07:00
parent dbc042261f
commit ae5091b09a
4 changed files with 15 additions and 25 deletions

View File

@@ -3292,8 +3292,7 @@ void ProtocolDecl::computeRequirementSignature() {
LookUpConformanceInModule(module));
builder.addGenericParameter(selfType);
auto selfPA =
builder.resolveArchetype(selfType,
ArchetypeResolutionKind::CompleteWellFormed);
builder.resolveArchetype(selfType, ArchetypeResolutionKind::WellFormed);
builder.addRequirement(
requirement,