diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2017-05-01 22:48:10 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-05-01 22:48:10 +0000 |
commit | e280c6ab3ec0fcd2b5ea2521ec89e87a30fccc09 (patch) | |
tree | 38516ec6159881da4e263dcab47e408343e7d911 /lib/Bitcode/Reader | |
parent | 5927be1ab4362e5f081bcab91c53b05f46b64a5d (diff) |
Fix a pessimising move warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301852 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index b0a01270ede..8b6f79a81b9 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/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. |