[compiler-rt] r271050 - [sanitizers] trying to fix Windows build

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Fri May 27 14:35:58 PDT 2016


Author: kcc
Date: Fri May 27 16:35:58 2016
New Revision: 271050

URL: http://llvm.org/viewvc/llvm-project?rev=271050&view=rev
Log:
[sanitizers] trying to fix Windows build

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

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc?rev=271050&r1=271049&r2=271050&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc Fri May 27 16:35:58 2016
@@ -497,7 +497,7 @@ void __sanitizer_set_report_path(const c
 }
 
 void __sanitizer_set_report_fd(void *fd) {
-  report_file.fd = reinterpret_cast<uptr>(fd);
+  report_file.fd = (fd_t)reinterpret_cast<uptr>(fd);
   report_file.fd_pid = internal_getpid();
 }
 




More information about the llvm-commits mailing list