File tree 2 files changed +4
-4
lines changed
llvm/include/llvm/ProfileData
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -708,7 +708,7 @@ class IndexedInstrProfReader : public InstrProfReader {
708
708
const uint8_t *BinaryIdsStart = nullptr ;
709
709
710
710
// Index to the current record in the record array.
711
- unsigned RecordIndex;
711
+ unsigned RecordIndex = 0 ;
712
712
713
713
// Read the profile summary. Return a pointer pointing to one byte past the
714
714
// end of the summary data if it exists or the input \c Cur.
@@ -721,7 +721,7 @@ class IndexedInstrProfReader : public InstrProfReader {
721
721
std::unique_ptr<MemoryBuffer> DataBuffer,
722
722
std::unique_ptr<MemoryBuffer> RemappingBuffer = nullptr )
723
723
: DataBuffer(std::move(DataBuffer)),
724
- RemappingBuffer (std::move(RemappingBuffer)), RecordIndex( 0 ) {}
724
+ RemappingBuffer (std::move(RemappingBuffer)) {}
725
725
IndexedInstrProfReader (const IndexedInstrProfReader &) = delete;
726
726
IndexedInstrProfReader &operator =(const IndexedInstrProfReader &) = delete ;
727
727
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ class SampleProfileWriterText : public SampleProfileWriter {
169
169
170
170
protected:
171
171
SampleProfileWriterText (std::unique_ptr<raw_ostream> &OS)
172
- : SampleProfileWriter(OS), Indent( 0 ) {}
172
+ : SampleProfileWriter(OS) {}
173
173
174
174
std::error_code writeHeader (const SampleProfileMap &ProfileMap) override {
175
175
LineCount = 0 ;
@@ -180,7 +180,7 @@ class SampleProfileWriterText : public SampleProfileWriter {
180
180
// / Indent level to use when writing.
181
181
// /
182
182
// / This is used when printing inlined callees.
183
- unsigned Indent;
183
+ unsigned Indent = 0 ;
184
184
185
185
friend ErrorOr<std::unique_ptr<SampleProfileWriter>>
186
186
SampleProfileWriter::create (std::unique_ptr<raw_ostream> &OS,
You can’t perform that action at this time.
0 commit comments