[compiler-rt] r181428 - [sanitizer] Fix build breakage in Go TSan.
Sergey Matveev
earthdok at google.com
Wed May 8 06:59:30 PDT 2013
Author: smatveev
Date: Wed May 8 08:59:30 2013
New Revision: 181428
URL: http://llvm.org/viewvc/llvm-project?rev=181428&view=rev
Log:
[sanitizer] Fix build breakage in Go TSan.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc?rev=181428&r1=181427&r2=181428&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc Wed May 8 08:59:30 2013
@@ -229,6 +229,7 @@ int internal_isatty(fd_t fd) {
return isatty(fd);
}
+#ifndef SANITIZER_GO
void GetStackTrace(StackTrace *stack, uptr max_s, uptr pc, uptr bp,
uptr stack_top, uptr stack_bottom, bool fast) {
#if !SANITIZER_CAN_FAST_UNWIND
@@ -248,6 +249,7 @@ void GetStackTrace(StackTrace *stack, up
stack->FastUnwindStack(pc, bp, stack_top, stack_bottom);
}
}
+#endif // SANITIZER_GO
} // namespace __sanitizer
More information about the llvm-commits
mailing list