[compiler-rt] r244908 - Fix installation of the unhandled exception filter with r244767

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


Author: rnk
Date: Thu Aug 13 11:37:28 2015
New Revision: 244908

URL: http://llvm.org/viewvc/llvm-project?rev=244908&view=rev
Log:
Fix installation of the unhandled exception filter with r244767

Apparently /Zc:inline causes static globals in custom sections to be
discarded if they are unreferenced.

Modified:
    compiler-rt/trunk/lib/asan/asan_win.cc

Modified: compiler-rt/trunk/lib/asan/asan_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_win.cc?rev=244908&r1=244907&r2=244908&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_win.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_win.cc Thu Aug 13 11:37:28 2015
@@ -252,7 +252,7 @@ int __asan_set_seh_filter() {
 // Put a pointer to __asan_set_seh_filter at the end of the global list
 // of C initializers, after the default EH is set by the CRT.
 #pragma section(".CRT$XIZ", long, read)  // NOLINT
-static __declspec(allocate(".CRT$XIZ"))
+__declspec(allocate(".CRT$XIZ"))
     int (*__intercept_seh)() = __asan_set_seh_filter;
 #endif
 // }}}




More information about the llvm-commits mailing list