diff options
Diffstat (limited to 'include/llvm/ProfileData/InstrProfReader.h')
-rw-r--r-- | include/llvm/ProfileData/InstrProfReader.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/ProfileData/InstrProfReader.h b/include/llvm/ProfileData/InstrProfReader.h index 3cfbf805a5..d236fecdb6 100644 --- a/include/llvm/ProfileData/InstrProfReader.h +++ b/include/llvm/ProfileData/InstrProfReader.h @@ -113,8 +113,8 @@ private: TextInstrProfReader &operator=(const TextInstrProfReader &) LLVM_DELETED_FUNCTION; public: - TextInstrProfReader(std::unique_ptr<MemoryBuffer> &DataBuffer_) - : DataBuffer(DataBuffer_.release()), Line(*DataBuffer, '#') {} + TextInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer_) + : DataBuffer(std::move(DataBuffer_)), Line(*DataBuffer, '#') {} /// Read the header. error_code readHeader() override { return success(); } @@ -161,7 +161,7 @@ private: RawInstrProfReader &operator=(const TextInstrProfReader &) LLVM_DELETED_FUNCTION; public: - RawInstrProfReader(std::unique_ptr<MemoryBuffer> &DataBuffer); + RawInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer); static bool hasFormat(const MemoryBuffer &DataBuffer); error_code readHeader() override; |