[PATCH] D101750: [clangd] Find implementors only when index is present.
Utkarsh Saxena via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 3 08:16:58 PDT 2021
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");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101750.342396.patch
Type: text/x-patch
Size: 610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210503/36dab2bf/attachment.bin>
More information about the cfe-commits
mailing list