[llvm] r214182 - ProfileData: Don't redundantly default initialize a member
Justin Bogner
mail at justinbogner.com
Tue Jul 29 08:56:06 PDT 2014
Author: bogner
Date: Tue Jul 29 10:56:06 2014
New Revision: 214182
URL: http://llvm.org/viewvc/llvm-project?rev=214182&view=rev
Log:
ProfileData: Don't redundantly default initialize a member
We're default constructing RecordIterator anyway, so it needn't appear
in the mem-initializer-list.
Modified:
llvm/trunk/include/llvm/ProfileData/InstrProfReader.h
Modified: llvm/trunk/include/llvm/ProfileData/InstrProfReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ProfileData/InstrProfReader.h?rev=214182&r1=214181&r2=214182&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ProfileData/InstrProfReader.h (original)
+++ llvm/trunk/include/llvm/ProfileData/InstrProfReader.h Tue Jul 29 10:56:06 2014
@@ -275,8 +275,7 @@ private:
LLVM_DELETED_FUNCTION;
public:
IndexedInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer)
- : DataBuffer(std::move(DataBuffer)), Index(nullptr),
- RecordIterator(InstrProfReaderIndex::data_iterator()) {}
+ : DataBuffer(std::move(DataBuffer)), Index(nullptr) {}
/// Return true if the given buffer is in an indexed instrprof format.
static bool hasFormat(const MemoryBuffer &DataBuffer);
More information about the llvm-commits
mailing list