[llvm-commits] [compiler-rt] r161170 - /compiler-rt/trunk/lib/interception/interception_win.cc

Alexey Samsonov samsonov at google.com
Thu Aug 2 04:38:58 PDT 2012


Author: samsonov
Date: Thu Aug  2 06:38:58 2012
New Revision: 161170

URL: http://llvm.org/viewvc/llvm-project?rev=161170&view=rev
Log:
[Sanitizer] fix windows build

Modified:
    compiler-rt/trunk/lib/interception/interception_win.cc

Modified: compiler-rt/trunk/lib/interception/interception_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/interception_win.cc?rev=161170&r1=161169&r2=161170&view=diff
==============================================================================
--- compiler-rt/trunk/lib/interception/interception_win.cc (original)
+++ compiler-rt/trunk/lib/interception/interception_win.cc Thu Aug  2 06:38:58 2012
@@ -28,7 +28,7 @@
   };
   *func_addr = 0;
   for (size_t i = 0; *func_addr == 0 && DLLS[i]; ++i) {
-    *func_addr = GetProcAddress(GetModuleHandleA(DLLS[i]), func_name);
+    *func_addr = (uptr)GetProcAddress(GetModuleHandleA(DLLS[i]), func_name);
   }
   return (*func_addr != 0);
 }





More information about the llvm-commits mailing list