mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-01 17:35:38 +00:00
Fix -Wpessimizing-move warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286629 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
35cecc31aa
commit
6b8a0789f7
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user