Skip to content

Commit af9712f

Browse files
committed
Added the initialization of IndexContents in MemIndex.
1 parent 12febcf commit af9712f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clangd/index/MemIndex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class MemIndex : public SymbolIndex {
9393
// Set of files which were used during this index build.
9494
llvm::StringSet<> Files;
9595
// Contents of the index (symbols, references, etc.)
96-
IndexContents IdxContents;
96+
IndexContents IdxContents = IndexContents::None;
9797
std::shared_ptr<void> KeepAlive; // poor man's move-only std::any
9898
// Size of memory retained by KeepAlive.
9999
size_t BackingDataSize = 0;

0 commit comments

Comments
 (0)