[all-commits] [llvm/llvm-project] a93b77: [memprof] Fix IndexedMemProfRecord::clear (#118533)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Tue Dec 3 19:23:49 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a93b77ce49978dd8fb0d60d9aec8e300b67ce0b8
      https://github.com/llvm/llvm-project/commit/a93b77ce49978dd8fb0d60d9aec8e300b67ce0b8
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-12-03 (Tue, 03 Dec 2024)

  Changed paths:
    M llvm/include/llvm/ProfileData/MemProf.h

  Log Message:
  -----------
  [memprof] Fix IndexedMemProfRecord::clear (#118533)

This patch ensures that IndexedMemProfRecord::clear clears every field
of IndexedMemProfRecord.

This fix is not critical at the moment.  The only use of this function
is in RecordWriterTrait::EmitData to release the memory we are done
with.  That is, we never clear the data structure for the purpose of
reusing it.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list