Fix -Wpessimizing-move warning.

llvm-svn: 286629
This commit is contained in:
Rui Ueyama 2016-11-11 20:39:02 +00:00
parent 6d9c315fe7
commit de03eee311

View File

@ -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,