diff --git a/include/llvm/ProfileData/InstrProfReader.h b/include/llvm/ProfileData/InstrProfReader.h index d236fecdb63..a14bb4d5b1d 100644 --- a/include/llvm/ProfileData/InstrProfReader.h +++ b/include/llvm/ProfileData/InstrProfReader.h @@ -161,7 +161,8 @@ private: RawInstrProfReader &operator=(const TextInstrProfReader &) LLVM_DELETED_FUNCTION; public: - RawInstrProfReader(std::unique_ptr DataBuffer); + RawInstrProfReader(std::unique_ptr DataBuffer) + : DataBuffer(std::move(DataBuffer)) { } static bool hasFormat(const MemoryBuffer &DataBuffer); error_code readHeader() override; diff --git a/lib/ProfileData/InstrProfReader.cpp b/lib/ProfileData/InstrProfReader.cpp index f923ad2ddd9..48e740eaf42 100644 --- a/lib/ProfileData/InstrProfReader.cpp +++ b/lib/ProfileData/InstrProfReader.cpp @@ -85,9 +85,6 @@ error_code TextInstrProfReader::readNextRecord(InstrProfRecord &Record) { return success(); } -RawInstrProfReader::RawInstrProfReader(std::unique_ptr DataBuffer) - : DataBuffer(std::move(DataBuffer)) { } - static uint64_t getRawMagic() { return uint64_t(255) << 56 |