diff options
| author | Reid Kleckner <rnk@google.com> | 2015-08-13 16:37:28 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2015-08-13 16:37:28 +0000 |
| commit | dd7b4406d17ecafd03c57838f4a7699cc92a1cf9 (patch) | |
| tree | 20608bc3cd43a59de60bb824ffd61f221b5f90b3 | |
| parent | 7e584168ab243e783c96fd5040feb1c6524efaf0 (diff) | |
| download | bcm5719-llvm-dd7b4406d17ecafd03c57838f4a7699cc92a1cf9.tar.gz bcm5719-llvm-dd7b4406d17ecafd03c57838f4a7699cc92a1cf9.zip | |
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.
llvm-svn: 244908
| -rw-r--r-- | compiler-rt/lib/asan/asan_win.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/asan_win.cc b/compiler-rt/lib/asan/asan_win.cc index 1aec72babca..f5a467a29d4 100644 --- a/compiler-rt/lib/asan/asan_win.cc +++ b/compiler-rt/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 // }}} |

