tsan: treat malloc() as memory access in Go


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160289 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/tsan/go/tsan_go.cc b/lib/tsan/go/tsan_go.cc
index de69709..ce916ad 100644
--- a/lib/tsan/go/tsan_go.cc
+++ b/lib/tsan/go/tsan_go.cc
@@ -192,6 +192,7 @@
   case MALLOC:
     thr->in_rtl++;
     MemoryResetRange(thr, (uptr)pc, (uptr)addr, (uptr)info);
+    MemoryAccessRange(thr, (uptr)pc, (uptr)addr, (uptr)info, true);
     thr->in_rtl--;
     break;
   case FREE: