[Sanitizer] Fix Go build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193873 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/sanitizer_common/sanitizer_common.cc b/lib/sanitizer_common/sanitizer_common.cc
index 1a01718..7f896f9 100644
--- a/lib/sanitizer_common/sanitizer_common.cc
+++ b/lib/sanitizer_common/sanitizer_common.cc
@@ -184,12 +184,14 @@
 
 void ReportErrorSummary(const char *error_type, StackTrace *stack) {
   AddressInfo ai;
+#if !SANITIZER_GO
   if (stack->size > 0 && Symbolizer::Get()->IsAvailable()) {
     // Currently, we include the first stack frame into the report summary.
     // Maybe sometimes we need to choose another frame (e.g. skip memcpy/etc).
     uptr pc = StackTrace::GetPreviousInstructionPc(stack->trace[0]);
     Symbolizer::Get()->SymbolizeCode(pc, &ai, 1);
   }
+#endif
   ReportErrorSummary(error_type, ai.file, ai.line, ai.function);
 }