From: Simon Pilgrim Date: Sat, 9 Nov 2019 13:47:53 +0000 (+0000) Subject: Fix builds where LLVM_ENABLE_STATS is disabled X-Git-Tag: llvmorg-11-init~4625 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2fb9d72c774ab7de26be079fe474e35f683859bc;p=platform%2Fupstream%2Fllvm.git Fix builds where LLVM_ENABLE_STATS is disabled Missed Stats->EnableStats rename in rG3fb832fe8bdc317687d5a4d2ca20f5f73b089341 --- diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp index ad5f0e9..8cc5020a 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. "