[compiler-rt] r260175 - [asan] Fix build on Windows and PowerPC.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 8 16:28:58 PST 2016


Author: eugenis
Date: Mon Feb  8 18:28:57 2016
New Revision: 260175

URL: http://llvm.org/viewvc/llvm-project?rev=260175&view=rev
Log:
[asan] Fix build on Windows and PowerPC.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.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=260175&r1=260174&r2=260175&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc Mon Feb  8 18:28:57 2016
@@ -1202,6 +1202,7 @@ SignalContext::WriteFlag SignalContext::
   if (!Aarch64GetESR(ucontext, &esr)) return UNKNOWN;
   return esr & ESR_ELx_WNR ? WRITE : READ;
 #else
+  (void)ucontext;
   return UNKNOWN;  // FIXME: Implement.
 #endif
 }

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc?rev=260175&r1=260174&r2=260175&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc Mon Feb  8 18:28:57 2016
@@ -731,8 +731,8 @@ bool IsAccessibleMemoryRange(uptr beg, u
 }
 
 SignalContext SignalContext::Create(void *siginfo, void *context) {
-  EXCEPTION_RECORD *exception_record = (EXCEPTION_RECORD*)siginfo;
-  CONTEXT *context_record = (CONTEXT*)context;
+  EXCEPTION_RECORD *exception_record = (EXCEPTION_RECORD *)siginfo;
+  CONTEXT *context_record = (CONTEXT *)context;
 
   uptr pc = (uptr)exception_record->ExceptionAddress;
 #ifdef _WIN64
@@ -744,8 +744,8 @@ SignalContext SignalContext::Create(void
 #endif
   uptr access_addr = exception_record->ExceptionInformation[1];
 
-  bool write_flag = SignalContext::UNKNOWN;  // FIXME: compute this.
-  bool is_memory_access = false;             // FIXME: compute this.
+  WriteFlag write_flag = SignalContext::UNKNOWN;  // FIXME: compute this.
+  bool is_memory_access = false;                  // FIXME: compute this.
   return SignalContext(context, access_addr, pc, sp, bp, is_memory_access,
                        write_flag);
 }




More information about the llvm-commits mailing list