tsan: slightly optimize mutex unlock 


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162995 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/tsan/rtl/tsan_rtl_mutex.cc b/lib/tsan/rtl/tsan_rtl_mutex.cc
index 41cbbad..167541f 100644
--- a/lib/tsan/rtl/tsan_rtl_mutex.cc
+++ b/lib/tsan/rtl/tsan_rtl_mutex.cc
@@ -115,7 +115,7 @@
       s->owner_tid = SyncVar::kInvalidTid;
       thr->clock.set(thr->tid, thr->fast_state.epoch());
       thr->fast_synch_epoch = thr->fast_state.epoch();
-      thr->clock.release(&s->clock);
+      thr->clock.ReleaseStore(&s->clock);
       StatInc(thr, StatSyncRelease);
     } else {
       StatInc(thr, StatMutexRecUnlock);
@@ -188,7 +188,7 @@
       TraceAddEvent(thr, thr->fast_state.epoch(), EventTypeUnlock, addr);
       thr->clock.set(thr->tid, thr->fast_state.epoch());
       thr->fast_synch_epoch = thr->fast_state.epoch();
-      thr->clock.release(&s->clock);
+      thr->clock.ReleaseStore(&s->clock);
       StatInc(thr, StatSyncRelease);
     } else {
       StatInc(thr, StatMutexRecUnlock);