diff --git a/clang-tools-extra/clangd/index/FileIndex.cpp b/clang-tools-extra/clangd/index/FileIndex.cpp --- a/clang-tools-extra/clangd/index/FileIndex.cpp +++ b/clang-tools-extra/clangd/index/FileIndex.cpp @@ -201,7 +201,8 @@ RelB.insert(*Rel); } IF.Relations = std::move(RelB).build(); - return IF; + // Explicit move here is needed by some compilers. + return std::move(IF); } SlabTuple indexMainDecls(ParsedAST &AST) {