[PATCH] D116827: Don't pass uninitialized QueryKind
Vitaly Buka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 7 16:39:33 PST 2022
vitalybuka updated this revision to Diff 398271.
vitalybuka added a comment.
update
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116827/new/
https://reviews.llvm.org/D116827
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
@@ -1298,7 +1298,7 @@
DeclRelationSet Relations =
DeclRelation::TemplatePattern | DeclRelation::Alias;
llvm::DenseSet<SymbolID> IDs;
- RelationKind QueryKind;
+ RelationKind QueryKind = RelationKind::OverriddenBy;
for (const NamedDecl *ND : getDeclAtPosition(AST, *CurLoc, Relations)) {
if (const auto *CXXMD = llvm::dyn_cast<CXXMethodDecl>(ND)) {
if (CXXMD->isVirtual()) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116827.398271.patch
Type: text/x-patch
Size: 592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220108/a03a4338/attachment.bin>
More information about the cfe-commits
mailing list