From af029860593e595aa496d96b4fa2386e2a3546ad Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 21 Nov 2019 11:56:48 +0000 Subject: Statistic - Fix MSVC shadow warning against global PrintOnExit static variable. NFC. --- llvm/lib/Support/Statistic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Support') diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp index 8cc5020a217..25f13871e2e 100644 --- a/llvm/lib/Support/Statistic.cpp +++ b/llvm/lib/Support/Statistic.cpp @@ -123,9 +123,9 @@ StatisticInfo::~StatisticInfo() { llvm::PrintStatistics(); } -void llvm::EnableStatistics(bool PrintOnExit) { +void llvm::EnableStatistics(bool DoPrintOnExit) { Enabled = true; - ::PrintOnExit = PrintOnExit; + PrintOnExit = DoPrintOnExit; } bool llvm::AreStatisticsEnabled() { -- cgit v1.2.3