Index: clang-tools-extra/trunk/clangd/index/FileIndex.cpp =================================================================== --- clang-tools-extra/trunk/clangd/index/FileIndex.cpp +++ clang-tools-extra/trunk/clangd/index/FileIndex.cpp @@ -126,7 +126,7 @@ for (const auto &Sym : *Slab) { auto I = Merged.try_emplace(Sym.ID, Sym); if (!I.second) - I.first->second = mergeSymbol(std::move(I.first->second), Sym); + I.first->second = mergeSymbol(I.first->second, Sym); } } SymsStorage.reserve(Merged.size()); Index: clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp =================================================================== --- clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp +++ clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp @@ -43,7 +43,7 @@ void f_b() { (void)common; })cpp"; - BackgroundIndex Idx(Context::empty(), "", FS, /*URISchmes=*/{"unittest"}); + BackgroundIndex Idx(Context::empty(), "", FS, /*URISchemes=*/{"unittest"}); tooling::CompileCommand Cmd; Cmd.Filename = testPath("root/A.cc");