hubert.reinterpretcast added inline comments.
================ Comment at: lib/AST/DeclCXX.cpp:1420 DeclContext::lookup_result R = lookup(Name); - if (R.empty()) + if (R.empty() || !isa<CXXDestructorDecl>(R.front())) return nullptr; ---------------- As it is, ``` return R.empty() ? nullptr : dyn_cast<CXXDestructorDecl>(R.front()); ``` would probably be much more succinct. https://reviews.llvm.org/D33833 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits