[compiler-rt] r267682 - tsan: fix windows build

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 01:41:31 PDT 2016


Author: dvyukov
Date: Wed Apr 27 03:41:31 2016
New Revision: 267682

URL: http://llvm.org/viewvc/llvm-project?rev=267682&view=rev
Log:
tsan: fix windows build

warning: '__sanitizer::uptr __sanitizer::GetPreferredBase(const char*)' defined but not used


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

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=267682&r1=267681&r2=267682&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc Wed Apr 27 03:41:31 2016
@@ -397,6 +397,7 @@ void Abort() {
   internal__exit(3);
 }
 
+#ifndef SANITIZER_GO
 // Read the file to extract the ImageBase field from the PE header. If ASLR is
 // disabled and this virtual address is available, the loader will typically
 // load the image at this address. Therefore, we call it the preferred base. Any
@@ -449,7 +450,6 @@ static uptr GetPreferredBase(const char
   return (uptr)pe_header->ImageBase;
 }
 
-#ifndef SANITIZER_GO
 void ListOfModules::init() {
   clear();
   HANDLE cur_process = GetCurrentProcess();




More information about the llvm-commits mailing list