ProfileData: Don't redundantly default initialize a member
authorJustin Bogner <mail@justinbogner.com>
Tue, 29 Jul 2014 15:56:06 +0000 (15:56 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 29 Jul 2014 15:56:06 +0000 (15:56 +0000)
We're default constructing RecordIterator anyway, so it needn't appear
in the mem-initializer-list.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214182 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ProfileData/InstrProfReader.h

index 7a5a71dc6a31e7a92e1500b24aef577f7c6cca63..b6073a44bb3543b4b4394a5c7ff494cdea46ad85 100644 (file)
@@ -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);