summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Statistic.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-09 13:47:53 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-09 13:47:53 +0000
commit2fb9d72c774ab7de26be079fe474e35f683859bc (patch)
tree207a8cefb38762d5f0cd91be3adc9f3a5e8f10b3 /llvm/lib/Support/Statistic.cpp
parentaedb528d4300a1dcb0980780f8ab45ecf64dc1d8 (diff)
downloadbcm5719-llvm-2fb9d72c774ab7de26be079fe474e35f683859bc.tar.gz
bcm5719-llvm-2fb9d72c774ab7de26be079fe474e35f683859bc.zip
Fix builds where LLVM_ENABLE_STATS is disabled
Missed Stats->EnableStats rename in rG3fb832fe8bdc317687d5a4d2ca20f5f73b089341
Diffstat (limited to 'llvm/lib/Support/Statistic.cpp')
-rw-r--r--llvm/lib/Support/Statistic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp
index ad5f0e98b7e..8cc5020a217 100644
--- a/llvm/lib/Support/Statistic.cpp
+++ b/llvm/lib/Support/Statistic.cpp
@@ -242,7 +242,7 @@ void llvm::PrintStatistics() {
// Check if the -stats option is set instead of checking
// !Stats.Stats.empty(). In release builds, Statistics operators
// do nothing, so stats are never Registered.
- if (Stats) {
+ if (EnableStats) {
// Get the stream to write to.
std::unique_ptr<raw_ostream> OutStream = CreateInfoOutputFile();
(*OutStream) << "Statistics are disabled. "
OpenPOWER on IntegriCloud