================ @@ -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; ---------------- Sirraide wrote:
Can we use SmallDenseSet here to avoid heap allocations most of the time? 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