[compiler-rt] r244910 - Same fix as r244908 for sanitizer_win.cc instead of asan_win.cc

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 13 09:40:55 PDT 2015


Author: rnk
Date: Thu Aug 13 11:40:54 2015
New Revision: 244910

URL: http://llvm.org/viewvc/llvm-project?rev=244910&view=rev
Log:
Same fix as r244908 for sanitizer_win.cc instead of asan_win.cc

I forgot to audit lib/sanitizer_common for the same issue.  This fixes
writing out coverage files on exit.

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=244910&r1=244909&r2=244910&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc Thu Aug 13 11:40:54 2015
@@ -454,7 +454,7 @@ static int RunAtexit() {
 }
 
 #pragma section(".CRT$XID", long, read)  // NOLINT
-static __declspec(allocate(".CRT$XID")) int (*__run_atexit)() = RunAtexit;
+__declspec(allocate(".CRT$XID")) int (*__run_atexit)() = RunAtexit;
 #endif
 
 // ------------------ sanitizer_libc.h




More information about the llvm-commits mailing list