[llvm] r301852 - Fix a pessimising move warning.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Mon May 1 15:48:11 PDT 2017


Author: pcc
Date: Mon May  1 17:48:10 2017
New Revision: 301852

URL: http://llvm.org/viewvc/llvm-project?rev=301852&view=rev
Log:
Fix a pessimising move warning.

Modified:
    llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp

Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp?rev=301852&r1=301851&r2=301852&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp Mon May  1 17:48:10 2017
@@ -5503,11 +5503,7 @@ Error BitcodeModule::readSummary(ModuleS
 
   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.




More information about the llvm-commits mailing list