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 | 5c96ef7c4e3649ee5119670455d72a320feeb283 (patch) | |
tree | 3a1cc20ee28fc1d417ede5313460a8f678ff20b4 /llvm/lib/CodeGen/SelectionDAG | |
parent | f840ed7ed4fcec895377ab86a493f4567580e638 (diff) | |
download | bcm5719-llvm-5c96ef7c4e3649ee5119670455d72a320feeb283.tar.gz bcm5719-llvm-5c96ef7c4e3649ee5119670455d72a320feeb283.zip |
Have scoped mutexes take referenes instead of pointers.
llvm-svn: 74931
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index c8f4b520ff1..5f45c980a58 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -5010,7 +5010,7 @@ static ManagedStatic<sys::SmartMutex<true> > VTMutex; /// 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 { |