commit | a9d1f2c559ef4b2549e29288fe6944e68913ba0f | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Tue Jul 07 18:33:04 2009 +0000 |
committer | Owen Anderson <resistor@mac.com> | Tue Jul 07 18:33:04 2009 +0000 |
tree | 79e3d7e0aafc4352dafe175986671f4353c0c5e2 | |
parent | fd15beefeedcb8108913e75e7c736dfcc17b433a [diff] [blame] |
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
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index c8f4b52..5f45c98 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -5010,7 +5010,7 @@ /// getValueTypeList - Return a pointer to the specified value type. /// const MVT *SDNode::getValueTypeList(MVT VT) { - sys::SmartScopedLock<true> Lock(&*VTMutex); + sys::SmartScopedLock<true> Lock(*VTMutex); if (VT.isExtended()) { return &(*EVTs->insert(VT).first); } else {