aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/Statistic.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-07 18:33:04 +0000
committerOwen Anderson <resistor@mac.com>2009-07-07 18:33:04 +0000
commita9d1f2c559ef4b2549e29288fe6944e68913ba0f (patch)
tree79e3d7e0aafc4352dafe175986671f4353c0c5e2 /lib/Support/Statistic.cpp
parentfd15beefeedcb8108913e75e7c736dfcc17b433a (diff)
downloadexternal_llvm-a9d1f2c559ef4b2549e29288fe6944e68913ba0f.zip
external_llvm-a9d1f2c559ef4b2549e29288fe6944e68913ba0f.tar.gz
external_llvm-a9d1f2c559ef4b2549e29288fe6944e68913ba0f.tar.bz2
Have scoped mutexes take referenes instead of pointers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Statistic.cpp')
-rw-r--r--lib/Support/Statistic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Statistic.cpp b/lib/Support/Statistic.cpp
index 33570b0..06496fa 100644
--- a/lib/Support/Statistic.cpp
+++ b/lib/Support/Statistic.cpp
@@ -65,7 +65,7 @@ static ManagedStatic<sys::Mutex> StatLock;
void Statistic::RegisterStatistic() {
// If stats are enabled, inform StatInfo that this statistic should be
// printed.
- sys::ScopedLock Writer(&*StatLock);
+ sys::ScopedLock Writer(*StatLock);
if (!Initialized) {
if (Enabled)
StatInfo->addStatistic(this);