]> granicus.if.org Git - llvm/commitdiff
Fix a pessimising move warning.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 1 May 2017 22:48:10 +0000 (22:48 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 1 May 2017 22:48:10 +0000 (22:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301852 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Reader/BitcodeReader.cpp

index b0a01270edeffe027910c6ca7a4ba0e390c3ac44..8b6f79a81b9354d4e723ed79749f0eebcbe0fad6 100644 (file)
@@ -5503,11 +5503,7 @@ Error BitcodeModule::readSummary(ModuleSummaryIndex &CombinedIndex,
 
   ModuleSummaryIndexBitcodeReader R(std::move(Stream), Strtab, CombinedIndex,
                                     ModuleIdentifier, ModuleId);
-
-  if (Error Err = R.parseModule())
-    return std::move(Err);
-
-  return Error::success();
+  return R.parseModule();
 }
 
 // Parse the specified bitcode buffer, returning the function info index.