projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31cbe0f
)
[clangd] Add std::move() to a return statement to please some compilers.
author
Martin Boehme
<mboehme@google.com>
Wed, 3 Jun 2020 11:07:13 +0000
(13:07 +0200)
committer
Martin Boehme
<mboehme@google.com>
Wed, 3 Jun 2020 13:40:01 +0000
(15:40 +0200)
This has been causing build errors in Swift CI.
Differential Revision: https://reviews.llvm.org/D81079
clang-tools-extra/clangd/index/FileIndex.cpp
patch
|
blob
|
history
diff --git
a/clang-tools-extra/clangd/index/FileIndex.cpp
b/clang-tools-extra/clangd/index/FileIndex.cpp
index
79ec112
..
1a18af1
100644
(file)
--- a/
clang-tools-extra/clangd/index/FileIndex.cpp
+++ b/
clang-tools-extra/clangd/index/FileIndex.cpp
@@
-201,7
+201,8
@@
FileShardedIndex::getShard(llvm::StringRef Uri) const {
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) {