llvm-profgen: Fix use of stats to be under LLVM_ENABLE_STATS
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 18 Dec 2022 17:46:01 +0000 (17:46 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 18 Dec 2022 17:46:01 +0000 (17:46 +0000)
commit09e79659bf2aeb0a5bd8ad6a9a40734b42caaf8a
treedeb221c64fef9fb08fe65f4aa98362c05ba31b44
parent8685445b3c9c6643432d24db6ffedddeb49ed8d2
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.
llvm/tools/llvm-profgen/MissingFrameInferrer.cpp
llvm/tools/llvm-profgen/MissingFrameInferrer.h