tasn: do not remember stack traces for sync objects for Go (they are not reported anyway)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160861 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/tsan/rtl/tsan_sync.cc b/lib/tsan/rtl/tsan_sync.cc
index 2014121..abb5a2a 100644
--- a/lib/tsan/rtl/tsan_sync.cc
+++ b/lib/tsan/rtl/tsan_sync.cc
@@ -71,7 +71,9 @@
       StatInc(thr, StatSyncCreated);
       void *mem = internal_alloc(MBlockSync, sizeof(SyncVar));
       res = new(mem) SyncVar(addr);
+#ifndef TSAN_GO
       res->creation_stack.ObtainCurrent(thr, pc);
+#endif
       res->next = p->val;
       p->val = res;
     }