[compiler-rt] r328279 - [sanitizer] Fix PPC bot

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 22 17:15:10 PDT 2018


Author: vitalybuka
Date: Thu Mar 22 17:15:10 2018
New Revision: 328279

URL: http://llvm.org/viewvc/llvm-project?rev=328279&view=rev
Log:
[sanitizer] Fix PPC bot

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc?rev=328279&r1=328278&r2=328279&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc Thu Mar 22 17:15:10 2018
@@ -1709,11 +1709,11 @@ static bool Aarch64GetESR(ucontext_t *uc
 #if SANITIZER_OPENBSD
 using Context = sigcontext;
 #else
-using Context = ucontext;
-#endif // !SANITIZER_OPENBSD
+using Context = ucontext_t;
+#endif
 
 SignalContext::WriteFlag SignalContext::GetWriteFlag() const {
-  ucontext_t *ucontext = (ucontext_t *)context;
+  Context *ucontext = (Context *)context;
 #if defined(__x86_64__) || defined(__i386__)
   static const uptr PF_WRITE = 1U << 1;
 #if SANITIZER_FREEBSD




More information about the llvm-commits mailing list