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:
d23982f
)
Fix -Wpessimizing-move warning.
author
Rui Ueyama
<ruiu@google.com>
Fri, 11 Nov 2016 20:39:02 +0000
(20:39 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Fri, 11 Nov 2016 20:39:02 +0000
(20:39 +0000)
llvm-svn: 286629
llvm/lib/Object/ModuleSummaryIndexObjectFile.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Object/ModuleSummaryIndexObjectFile.cpp
b/llvm/lib/Object/ModuleSummaryIndexObjectFile.cpp
index
d37530b
..
202783e
100644
(file)
--- a/
llvm/lib/Object/ModuleSummaryIndexObjectFile.cpp
+++ b/
llvm/lib/Object/ModuleSummaryIndexObjectFile.cpp
@@
-80,7
+80,7
@@
ModuleSummaryIndexObjectFile::create(MemoryBufferRef Object) {
getModuleSummaryIndex(BCOrErr.get());
if (!IOrErr)
- return
std::move(IOrErr.takeError()
);
+ return
IOrErr.takeError(
);
std::unique_ptr<ModuleSummaryIndex> Index = std::move(IOrErr.get());
return llvm::make_unique<ModuleSummaryIndexObjectFile>(Object,