[all-commits] [llvm/llvm-project] 09e796: llvm-profgen: Fix use of stats to be under LLVM_EN...

David Blaikie via All-commits all-commits at lists.llvm.org
Sun Dec 18 09:47:28 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09e79659bf2aeb0a5bd8ad6a9a40734b42caaf8a
      https://github.com/llvm/llvm-project/commit/09e79659bf2aeb0a5bd8ad6a9a40734b42caaf8a
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2022-12-18 (Sun, 18 Dec 2022)

  Changed paths:
    M llvm/tools/llvm-profgen/MissingFrameInferrer.cpp
    M llvm/tools/llvm-profgen/MissingFrameInferrer.h

  Log Message:
  -----------
  llvm-profgen: Fix use of stats to be under LLVM_ENABLE_STATS

This caused a -Wunused-variable warning in a without-assert+with-stats
build (because the stats were included but their use was not).

Stat use is meant to be gated by LLVM_ENABLE_STATS which can be set
independently of assertions.




More information about the All-commits mailing list