diff options
author | Bill Wendling <isanbard@gmail.com> | 2020-02-10 05:18:09 -0800 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2020-02-10 06:39:44 -0800 |
commit | 1c2241a7936bf85aa68aef94bd40c3ba77d8ddf2 (patch) | |
tree | 0c9ba27cfe58de2aedf223cced3864d1d2e92fef /llvm/lib/ProfileData/SampleProfReader.cpp | |
parent | a67db83681f3dfe2950ad8d2b2addb5d6f175ad3 (diff) | |
download | llvm-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.cpp | 4 |
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 |