mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Propagate explicit-conformance declaration to inherited protocol checks.
Eliminates the redundant diagnostics I introduced in r8127. Swift SVN r8163
This commit is contained in:
@@ -486,6 +486,8 @@ specializeTypeWitnesses(ASTContext &ctx,
|
||||
static std::tuple<NominalTypeDecl *, Decl *, ProtocolConformance *>
|
||||
findExplicitConformance(Module *module, NominalTypeDecl *nominal,
|
||||
ProtocolDecl *protocol, LazyResolver *resolver) {
|
||||
// FIXME: Introduce a cache/lazy lookup structure to make this more efficient?
|
||||
|
||||
// Walk the nominal type, its extensions, superclasses, and so on.
|
||||
llvm::SmallPtrSet<ProtocolDecl *, 4> visitedProtocols;
|
||||
SmallVector<std::tuple<NominalTypeDecl *, NominalTypeDecl *, Decl *>,4> stack;
|
||||
|
||||
Reference in New Issue
Block a user