mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Refactor existential type accessors on TypeBase and CanType
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user