[NFC] Strip all remaining TypeResolutionOptions parameters

Now that these are stored in the TypeResolution object itself, and all callers that mutate flags create a new resolution object, this data can be derived from the resolution itself.
This commit is contained in:
Robert Widmann
2020-04-30 10:51:12 -07:00
parent 4130170bf2
commit 31d23303e1
14 changed files with 87 additions and 121 deletions

View File

@@ -1092,7 +1092,6 @@ ConstraintSystem::getTypeOfReference(ValueDecl *value,
auto type = TypeChecker::resolveTypeInContext(
typeDecl, nullptr,
TypeResolution::forContextual(useDC, TypeResolverContext::InExpression),
TypeResolverContext::InExpression,
/*isSpecialized=*/false);
checkNestedTypeConstraints(*this, type, locator);