From 2fb9d72c774ab7de26be079fe474e35f683859bc Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 9 Nov 2019 13:47:53 +0000 Subject: Fix builds where LLVM_ENABLE_STATS is disabled Missed Stats->EnableStats rename in rG3fb832fe8bdc317687d5a4d2ca20f5f73b089341 --- llvm/lib/Support/Statistic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/Statistic.cpp') 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 OutStream = CreateInfoOutputFile(); (*OutStream) << "Statistics are disabled. " -- cgit v1.2.3