[clang-tools-extra] r341337 - [clangd] Fix index-twice regression from r341242
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 3 13:26:26 PDT 2018
Author: sammccall
Date: Mon Sep 3 13:26:26 2018
New Revision: 341337
URL: http://llvm.org/viewvc/llvm-project?rev=341337&view=rev
Log:
[clangd] Fix index-twice regression from r341242
Modified:
clang-tools-extra/trunk/clangd/index/FileIndex.cpp
Modified: clang-tools-extra/trunk/clangd/index/FileIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/FileIndex.cpp?rev=341337&r1=341336&r2=341337&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/index/FileIndex.cpp (original)
+++ clang-tools-extra/trunk/clangd/index/FileIndex.cpp Mon Sep 3 13:26:26 2018
@@ -125,7 +125,6 @@ void FileIndex::update(PathRef Path, AST
assert(PP);
auto Slab = llvm::make_unique<SymbolSlab>();
auto OccurrenceSlab = llvm::make_unique<SymbolOccurrenceSlab>();
- auto IndexResults = indexAST(*AST, PP, TopLevelDecls, URISchemes);
std::tie(*Slab, *OccurrenceSlab) =
indexAST(*AST, PP, TopLevelDecls, URISchemes);
FSymbols.update(Path, std::move(Slab), std::move(OccurrenceSlab));
More information about the cfe-commits
mailing list