@@ -433,9 +433,9 @@ static uint64_t writeMemProfRecords(
433433 RecordWriter->Schema = Schema;
434434 OnDiskChainedHashTableGenerator<memprof::RecordWriterTrait>
435435 RecordTableGenerator;
436- for (auto &I : MemProfRecordData) {
436+ for (auto &[GUID, Record] : MemProfRecordData) {
437437 // Insert the key (func hash) and value (memprof record).
438- RecordTableGenerator.insert (I. first , I. second , *RecordWriter.get ());
438+ RecordTableGenerator.insert (GUID, Record , *RecordWriter.get ());
439439 }
440440 // Release the memory of this MapVector as it is no longer needed.
441441 MemProfRecordData.clear ();
@@ -453,9 +453,9 @@ static uint64_t writeMemProfFrames(
453453 auto FrameWriter = std::make_unique<memprof::FrameWriterTrait>();
454454 OnDiskChainedHashTableGenerator<memprof::FrameWriterTrait>
455455 FrameTableGenerator;
456- for (auto &I : MemProfFrameData) {
456+ for (auto &[FrameId, Frame] : MemProfFrameData) {
457457 // Insert the key (frame id) and value (frame contents).
458- FrameTableGenerator.insert (I. first , I. second );
458+ FrameTableGenerator.insert (FrameId, Frame );
459459 }
460460 // Release the memory of this MapVector as it is no longer needed.
461461 MemProfFrameData.clear ();
0 commit comments