[PATCH] D81079: [clangd] Add std::move() to a return statement to please some compilers.
Martin Böhme via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 3 04:21:03 PDT 2020
mboehme created this revision.
mboehme added a reviewer: sammccall.
mboehme added a project: clang-tools-extra.
Herald added subscribers: cfe-commits, usaxena95, kadircet, arphaman, jkorous, MaskRay, ilya-biryukov.
Herald added a project: clang.
This has been causing build errors in Swift CI.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D81079
Files:
clang-tools-extra/clangd/index/FileIndex.cpp
Index: clang-tools-extra/clangd/index/FileIndex.cpp
===================================================================
--- clang-tools-extra/clangd/index/FileIndex.cpp
+++ 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) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81079.268132.patch
Type: text/x-patch
Size: 452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200603/a238267e/attachment-0001.bin>
More information about the cfe-commits
mailing list