tsan: treat malloc() as memory access in Go

llvm-svn: 160289
diff --git a/compiler-rt/lib/tsan/go/tsan_go.cc b/compiler-rt/lib/tsan/go/tsan_go.cc
index de69709..ce916ad 100644
--- a/compiler-rt/lib/tsan/go/tsan_go.cc
+++ b/compiler-rt/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: