File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -4287,19 +4287,11 @@ AncestryOptions ClassDecl::checkAncestry() const {
4287
4287
AncestryFlags
4288
4288
ClassAncestryFlagsRequest::evaluate (Evaluator &evaluator,
4289
4289
ClassDecl *value) const {
4290
- llvm::SmallPtrSet<const ClassDecl *, 8 > visited;
4291
-
4292
4290
AncestryOptions result;
4293
4291
const ClassDecl *CD = value;
4294
4292
auto *M = value->getParentModule ();
4295
4293
4296
4294
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
-
4303
4295
if (CD->isGenericContext ())
4304
4296
result |= AncestryFlags::Generic;
4305
4297
You can’t perform that action at this time.
0 commit comments