diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-07 18:33:04 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-07 18:33:04 +0000 |
commit | a9d1f2c559ef4b2549e29288fe6944e68913ba0f (patch) | |
tree | 79e3d7e0aafc4352dafe175986671f4353c0c5e2 /lib/VMCore/PassManager.cpp | |
parent | fd15beefeedcb8108913e75e7c736dfcc17b433a (diff) | |
download | external_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/VMCore/PassManager.cpp')
-rw-r--r-- | lib/VMCore/PassManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 46f1243..74c09fd 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -392,7 +392,7 @@ public: if (dynamic_cast<PMDataManager *>(P)) return; - sys::SmartScopedLock<true> Lock(&*TimingInfoMutex); + sys::SmartScopedLock<true> Lock(*TimingInfoMutex); std::map<Pass*, Timer>::iterator I = TimingData.find(P); if (I == TimingData.end()) I=TimingData.insert(std::make_pair(P, Timer(P->getPassName(), TG))).first; @@ -403,7 +403,7 @@ public: if (dynamic_cast<PMDataManager *>(P)) return; - sys::SmartScopedLock<true> Lock(&*TimingInfoMutex); + sys::SmartScopedLock<true> Lock(*TimingInfoMutex); std::map<Pass*, Timer>::iterator I = TimingData.find(P); assert(I != TimingData.end() && "passStarted/passEnded not nested right!"); I->second.stopTimer(); |