[llvm] 2fb9d72 - Fix builds where LLVM_ENABLE_STATS is disabled

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 9 05:49:25 PST 2019


Author: Simon Pilgrim
Date: 2019-11-09T13:47:53Z
New Revision: 2fb9d72c774ab7de26be079fe474e35f683859bc

URL: https://github.com/llvm/llvm-project/commit/2fb9d72c774ab7de26be079fe474e35f683859bc
DIFF: https://github.com/llvm/llvm-project/commit/2fb9d72c774ab7de26be079fe474e35f683859bc.diff

LOG: Fix builds where LLVM_ENABLE_STATS is disabled

Missed Stats->EnableStats rename in rG3fb832fe8bdc317687d5a4d2ca20f5f73b089341

Added: 
    

Modified: 
    llvm/lib/Support/Statistic.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp
index ad5f0e98b7e8..8cc5020a217e 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.  "


        


More information about the llvm-commits mailing list