Fix builds where LLVM_ENABLE_STATS is disabled
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 9 Nov 2019 13:47:53 +0000 (13:47 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 9 Nov 2019 13:47:53 +0000 (13:47 +0000)
Missed Stats->EnableStats rename in rG3fb832fe8bdc317687d5a4d2ca20f5f73b089341

llvm/lib/Support/Statistic.cpp

index ad5f0e9..8cc5020 100644 (file)
@@ -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.  "