[compiler-rt] r299632 - Try to fix MAC buildbot after r299630
Maxim Ostapenko via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 6 01:17:09 PDT 2017
Author: chefmax
Date: Thu Apr 6 03:17:09 2017
New Revision: 299632
URL: http://llvm.org/viewvc/llvm-project?rev=299632&view=rev
Log:
Try to fix MAC buildbot after r299630
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_mac.cc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_tls_get_addr.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_mac.cc?rev=299632&r1=299631&r2=299632&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_mac.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_mac.cc Thu Apr 6 03:17:09 2017
@@ -23,11 +23,11 @@ void StopTheWorld(StopTheWorldCallback c
CHECK(0 && "unimplemented");
}
-int SuspendedThreadsList::GetRegistersAndSP(uptr index,
- uptr *buffer,
- uptr *sp) const {
+PtraceRegistersStatus SuspendedThreadsList::GetRegistersAndSP(uptr index,
+ uptr *buffer,
+ uptr *sp) const {
CHECK(0 && "unimplemented");
- return 0;
+ return REGISTERS_UNAVAILABLE_FATAL;
}
uptr SuspendedThreadsList::RegisterCount() {
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_tls_get_addr.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_tls_get_addr.cc?rev=299632&r1=299631&r2=299632&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_tls_get_addr.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_tls_get_addr.cc Thu Apr 6 03:17:09 2017
@@ -145,7 +145,9 @@ void DTLS_on_libc_memalign(void *ptr, up
DTLS::DTV *DTLS_on_tls_get_addr(void *arg, void *res) { return 0; }
DTLS *DTLS_Get() { return 0; }
void DTLS_Destroy() {}
-bool DTLSInDestruction(DTLS *dtls) { return true; }
+bool DTLSInDestruction(DTLS *dtls) {
+ UNREACHABLE("dtls is unsupported on this platform!");
+}
#endif // SANITIZER_INTERCEPT_TLS_GET_ADDR
More information about the llvm-commits
mailing list