usaxena95 created this revision. usaxena95 added a reviewer: sammccall. Herald added subscribers: kadircet, arphaman. usaxena95 requested review of this revision. Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov. Herald added a project: clang-tools-extra.
Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D101750 Files: clang-tools-extra/clangd/XRefs.cpp Index: clang-tools-extra/clangd/XRefs.cpp =================================================================== --- clang-tools-extra/clangd/XRefs.cpp +++ clang-tools-extra/clangd/XRefs.cpp @@ -299,7 +299,7 @@ RelationKind Predicate, const SymbolIndex *Index, llvm::StringRef MainFilePath) { - if (IDs.empty()) + if (IDs.empty() || !Index) return {}; static constexpr trace::Metric FindImplementorsMetric( "find_implementors", trace::Metric::Counter, "case");
Index: clang-tools-extra/clangd/XRefs.cpp =================================================================== --- clang-tools-extra/clangd/XRefs.cpp +++ clang-tools-extra/clangd/XRefs.cpp @@ -299,7 +299,7 @@ RelationKind Predicate, const SymbolIndex *Index, llvm::StringRef MainFilePath) { - if (IDs.empty()) + if (IDs.empty() || !Index) return {}; static constexpr trace::Metric FindImplementorsMetric( "find_implementors", trace::Metric::Counter, "case");
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits