diff options
Diffstat (limited to 'compiler-rt/lib')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_common.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.cc b/compiler-rt/lib/sanitizer_common/sanitizer_common.cc index 1a01718a6b7..7f896f9bd89 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common.cc +++ b/compiler-rt/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); } |

