From 440e204c7ba54da0829785bd2e0f2f324fbf6f8f Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 1 May 2017 22:48:10 +0000 Subject: Fix a pessimising move warning. llvm-svn: 301852 --- llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp') diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index b0a01270ede..8b6f79a81b9 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -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. -- cgit v1.2.3