mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 21:32:49 +00:00
Fix -Wpessimizing-move warning.
llvm-svn: 286629
This commit is contained in:
parent
6d9c315fe7
commit
de03eee311
@ -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…
Reference in New Issue
Block a user