summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-11-01 18:00:22 +0000
committerAlexey Samsonov <samsonov@google.com>2013-11-01 18:00:22 +0000
commit50cdc5a0d78f400183bd9dc7c23a2ed6e733e48b (patch)
treef9a506a99a0dd51f996c75ca89082967e3904466
parentc50f7962c823506109b6307209411b36e0d46abd (diff)
downloadcompiler-rt-50cdc5a0d78f400183bd9dc7c23a2ed6e733e48b.tar.gz
compiler-rt-50cdc5a0d78f400183bd9dc7c23a2ed6e733e48b.tar.bz2
compiler-rt-50cdc5a0d78f400183bd9dc7c23a2ed6e733e48b.tar.xz
[Sanitizer] Fix Go build
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193873 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/sanitizer_common/sanitizer_common.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_common.cc b/lib/sanitizer_common/sanitizer_common.cc
index 1a01718a..7f896f9b 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, const char *file,
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);
}