Copy ExpandInlineAsm to TargetLowering from TargetAsmInfo.
[oota-llvm.git] / include / llvm / System / Mutex.h
index d2c457dbc91c6d14203295740c6442196d5433a6..9ef5942a702b6ebc0f130859add406e39f282e2a 100644 (file)
@@ -131,15 +131,15 @@ namespace llvm
     
     template<bool mt_only>
     class SmartScopedLock  {
-      SmartMutex<mt_only>* mtx;
+      SmartMutex<mt_only>& mtx;
       
     public:
-      SmartScopedLock(SmartMutex<mt_only>* m) : mtx(m) {
-        mtx->acquire();
+      SmartScopedLock(SmartMutex<mt_only>& m) : mtx(m) {
+        mtx.acquire();
       }
       
       ~SmartScopedLock() {
-        mtx->release();
+        mtx.release();
       }
     };