We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6af690a commit d57a8d2Copy full SHA for d57a8d2
lib/AST/Decl.cpp
@@ -4489,10 +4489,9 @@ ClassDecl::findImplementingMethod(const AbstractFunctionDecl *Method) const {
4489
bool ClassDecl::walkSuperclasses(
4490
llvm::function_ref<TypeWalker::Action(ClassDecl *)> fn) const {
4491
4492
- SmallPtrSet<ClassDecl *, 8> seen;
4493
auto *cls = const_cast<ClassDecl *>(this);
4494
4495
- while (cls && seen.insert(cls).second) {
+ while (cls) {
4496
switch (fn(cls)) {
4497
case TypeWalker::Action::Stop:
4498
return true;
0 commit comments