[all-commits] [llvm/llvm-project] cb8154: [memprof] Add LLVM_DEBUG for unused var in RawMemP...

Snehasish Kumar via All-commits all-commits at lists.llvm.org
Tue Feb 8 16:03:08 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb81545e7dcf717696a4a4de237d55a9a3cc6a85
      https://github.com/llvm/llvm-project/commit/cb81545e7dcf717696a4a4de237d55a9a3cc6a85
  Author: Snehasish Kumar <snehasishk at google.com>
  Date:   2022-02-08 (Tue, 08 Feb 2022)

  Changed paths:
    M llvm/lib/ProfileData/RawMemProfReader.cpp

  Log Message:
  -----------
  [memprof] Add LLVM_DEBUG for unused var in RawMemProfReader.cpp.

The ContainingSegment variable is only used to check whether we found
the address at this time. When building without Asserts this emits a
warning. So for now wrap this code in LLVM_DEBUG to avoid the warning.




More information about the All-commits mailing list