aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/SampleProfReader.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2020-02-10 05:18:09 -0800
committerBill Wendling <isanbard@gmail.com>2020-02-10 06:39:44 -0800
commit1c2241a7936bf85aa68aef94bd40c3ba77d8ddf2 (patch)
tree0c9ba27cfe58de2aedf223cced3864d1d2e92fef /llvm/lib/ProfileData/SampleProfReader.cpp
parenta67db83681f3dfe2950ad8d2b2addb5d6f175ad3 (diff)
downloadllvm-1c2241a7936bf85aa68aef94bd40c3ba77d8ddf2.zip
llvm-1c2241a7936bf85aa68aef94bd40c3ba77d8ddf2.tar.gz
llvm-1c2241a7936bf85aa68aef94bd40c3ba77d8ddf2.tar.bz2
Remove redundant "std::move"s in return statements
Diffstat (limited to 'llvm/lib/ProfileData/SampleProfReader.cpp')
-rw-r--r--llvm/lib/ProfileData/SampleProfReader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ProfileData/SampleProfReader.cpp b/llvm/lib/ProfileData/SampleProfReader.cpp
index 6f74cec..5a67393 100644
--- a/llvm/lib/ProfileData/SampleProfReader.cpp
+++ b/llvm/lib/ProfileData/SampleProfReader.cpp
@@ -1250,7 +1250,7 @@ setupMemoryBuffer(const Twine &Filename) {
if (uint64_t(Buffer->getBufferSize()) > std::numeric_limits<uint32_t>::max())
return sampleprof_error::too_large;
- return std::move(Buffer);
+ return Buffer;
}
/// Create a sample profile reader based on the format of the input file.
@@ -1362,7 +1362,7 @@ SampleProfileReader::create(std::unique_ptr<MemoryBuffer> &B, LLVMContext &C,
return EC;
}
- return std::move(Reader);
+ return Reader;
}
// For text and GCC file formats, we compute the summary after reading the