================ @@ -1391,7 +1391,9 @@ class DeclContextLookupResult { const_iterator end() const { return iterator(); } bool empty() const { return Result.isNull(); } - bool isSingleResult() const { return Result.dyn_cast<NamedDecl*>(); } + bool isSingleResult() const { + return dyn_cast_if_present<NamedDecl *>(Result); ---------------- nikic wrote:
isa_if_present would be clearer here? https://github.com/llvm/llvm-project/pull/124425 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits