summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Statistic.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-21 11:56:48 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-21 12:08:01 +0000
commitaf029860593e595aa496d96b4fa2386e2a3546ad (patch)
tree21e054d75e2b5bbd3359e307f2f530eac7e66c4c /llvm/lib/Support/Statistic.cpp
parent013f4ba9c21f91accc516e5a70c70efc69d92b69 (diff)
downloadbcm5719-llvm-af029860593e595aa496d96b4fa2386e2a3546ad.tar.gz
bcm5719-llvm-af029860593e595aa496d96b4fa2386e2a3546ad.zip
Statistic - Fix MSVC shadow warning against global PrintOnExit static variable. NFC.
Diffstat (limited to 'llvm/lib/Support/Statistic.cpp')
-rw-r--r--llvm/lib/Support/Statistic.cpp4
1 files changed, 2 insertions, 2 deletions
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() {
OpenPOWER on IntegriCloud