================ @@ -7172,7 +7172,10 @@ void Sema::CheckCompletedCXXClass(Scope *S, CXXRecordDecl *Record) { // "effectively constexpr" for better compatibility. // See https://github.com/llvm/llvm-project/issues/102293 for more info. if (isa<CXXDestructorDecl>(M)) { - auto Check = [](QualType T, auto &&Check) -> bool { + llvm::DenseSet<QualType> Visited; + auto Check = [&Visited](QualType T, auto &&Check) -> bool { + if (!Visited.insert(T).second) ---------------- Sirraide wrote:
Oh, we should probably insert the canonical type of `T` into the set though. https://github.com/llvm/llvm-project/pull/143244 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits