AST: Remove unused 'resolver' argument from TypeBase::getSuperclass()

This commit is contained in:
Slava Pestov
2017-04-19 20:08:44 -07:00
parent 55df58d2a3
commit f4b91cd118
36 changed files with 100 additions and 130 deletions

View File

@@ -1301,8 +1301,7 @@ class CodeCompletionCallbacksImpl : public CodeCompletionCallbacks {
Type DT = DC->getDeclaredTypeOfContext();
if (DT.isNull() || DT->is<ErrorType>())
return;
OwnedResolver TypeResolver(createLazyResolver(CurDeclContext->getASTContext()));
Type ST = DT->getSuperclass(TypeResolver.get());
Type ST = DT->getSuperclass();
if (ST.isNull() || ST->is<ErrorType>())
return;
if (ST->getNominalOrBoundGenericNominal()) {