diff options
| author | Alexey Samsonov <samsonov@google.com> | 2013-11-01 18:00:22 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2013-11-01 18:00:22 +0000 |
| commit | 31d4c34433e8fa72e19e908460194ff9341384f7 (patch) | |
| tree | 3a233e06def328215296b656a39847c67d955cbf /compiler-rt/lib | |
| parent | 2ede02f6d07cf79fc52b087cce53d6523313960a (diff) | |
| download | bcm5719-llvm-31d4c34433e8fa72e19e908460194ff9341384f7.tar.gz bcm5719-llvm-31d4c34433e8fa72e19e908460194ff9341384f7.zip | |
[Sanitizer] Fix Go build
llvm-svn: 193873
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); } |

