Skip to content

Commit

Permalink
Fix a pessimising move warning.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301852 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
pcc committed May 1, 2017
1 parent 5927be1 commit e280c6a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/Bitcode/Reader/BitcodeReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e280c6a

Please sign in to comment.