This revision was automatically updated to reflect the committed changes. Closed by commit rGc3d5f306e910: [clangd] Find implementors only when index is present. (authored by usaxena95).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101750/new/ 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