AST: Refactor existential type accessors on TypeBase and CanType

This commit is contained in:
Slava Pestov
2017-04-03 22:06:23 -07:00
parent ab74f6b143
commit 37491e63ac
26 changed files with 144 additions and 188 deletions

View File

@@ -606,7 +606,7 @@ ModuleDecl::lookupConformance(Type type, ProtocolDecl *protocol,
// itself.
if (type->isExistentialType()) {
SmallVector<ProtocolDecl *, 4> protocols;
type->getAnyExistentialTypeProtocols(protocols);
type->getExistentialTypeProtocols(protocols);
// Due to an IRGen limitation, witness tables cannot be passed from an
// existential to an archetype parameter, so for now we restrict this to