[compiler-rt] r193873 - [Sanitizer] Fix Go build
Alexey Samsonov
samsonov at google.com
Fri Nov 1 11:00:22 PDT 2013
Author: samsonov
Date: Fri Nov 1 13:00:22 2013
New Revision: 193873
URL: http://llvm.org/viewvc/llvm-project?rev=193873&view=rev
Log:
[Sanitizer] Fix Go build
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc?rev=193873&r1=193872&r2=193873&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc Fri Nov 1 13:00:22 2013
@@ -184,12 +184,14 @@ void ReportErrorSummary(const char *erro
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);
}
More information about the llvm-commits
mailing list