[all-commits] [llvm/llvm-project] 774b12: [memprof] Initialize AllocInfoIter and CallSitesIt...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Wed Jan 29 14:31:21 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 774b12c4a06bd68f314bd741be0eb77a1cb49b7d
      https://github.com/llvm/llvm-project/commit/774b12c4a06bd68f314bd741be0eb77a1cb49b7d
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-01-29 (Wed, 29 Jan 2025)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/MemProfiler.cpp

  Log Message:
  -----------
  [memprof] Initialize AllocInfoIter and CallSitesIter (NFC) (#124972)

This patch initializes AllocInfoIter and CallSitesIter to their
respective end().  I'm doing this not because I'm worried about
uninitialized iterators, but because the resulting code looks shorter
and makes it clear which data structure each iterator is associated
with.



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