summaryrefslogtreecommitdiff
path: root/lib/asan/asan_win.cc
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2015-08-13 16:37:28 +0000
committerReid Kleckner <rnk@google.com>2015-08-13 16:37:28 +0000
commit0394f40534a71895999405a7bd48a0042d09c384 (patch)
tree91b585db57da1521d02e91bda8fbc807abd9fa77 /lib/asan/asan_win.cc
parentaf9f4ffd621e8108c892f794b2858bfe4475bbad (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@244908 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_win.cc')
-rw-r--r--lib/asan/asan_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/asan_win.cc b/lib/asan/asan_win.cc
index 1aec72bab..f5a467a29 100644
--- a/lib/asan/asan_win.cc
+++ b/lib/asan/asan_win.cc
@@ -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
// }}}