tsan: more precise handling of atomic_store(memory_order_release)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162994 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/tsan/rtl/tsan_interface_atomic.cc b/lib/tsan/rtl/tsan_interface_atomic.cc
index a3982a1..ce807f0 100644
--- a/lib/tsan/rtl/tsan_interface_atomic.cc
+++ b/lib/tsan/rtl/tsan_interface_atomic.cc
@@ -85,7 +85,7 @@
     morder mo) {
   CHECK(mo & (mo_relaxed | mo_release | mo_seq_cst));
   if (mo & (mo_release | mo_seq_cst))
-    Release(thr, pc, (uptr)a);
+    ReleaseStore(thr, pc, (uptr)a);
   *a = v;
 }