Skip to content

Commit 2dc8a13

Browse files
committed
[AST] Simplify ClassAncestryFlagsRequest.
1 parent ad20b8a commit 2dc8a13

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/AST/Decl.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4287,19 +4287,11 @@ AncestryOptions ClassDecl::checkAncestry() const {
42874287
AncestryFlags
42884288
ClassAncestryFlagsRequest::evaluate(Evaluator &evaluator,
42894289
ClassDecl *value) const {
4290-
llvm::SmallPtrSet<const ClassDecl *, 8> visited;
4291-
42924290
AncestryOptions result;
42934291
const ClassDecl *CD = value;
42944292
auto *M = value->getParentModule();
42954293

42964294
do {
4297-
// If we hit circularity, we will diagnose at some point in typeCheckDecl().
4298-
// However we have to explicitly guard against that here because we get
4299-
// called as part of the interface type request.
4300-
if (!visited.insert(CD).second)
4301-
break;
4302-
43034295
if (CD->isGenericContext())
43044296
result |= AncestryFlags::Generic;
43054297

0 commit comments

Comments
 (0)