diff options
Diffstat (limited to 'compiler-rt/lib/asan/asan_win.cc')
-rw-r--r-- | compiler-rt/lib/asan/asan_win.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/asan_win.cc b/compiler-rt/lib/asan/asan_win.cc index 2ef78cd1550..87b36d9fc11 100644 --- a/compiler-rt/lib/asan/asan_win.cc +++ b/compiler-rt/lib/asan/asan_win.cc @@ -37,6 +37,12 @@ int __asan_should_detect_stack_use_after_return() { return __asan_option_detect_stack_use_after_return; } +SANITIZER_INTERFACE_ATTRIBUTE +int __asan_should_detect_stack_use_after_scope() { + __asan_init(); + return __asan_option_detect_stack_use_after_scope; +} + // -------------------- A workaround for the abscence of weak symbols ----- {{{ // We don't have a direct equivalent of weak symbols when using MSVC, but we can // use the /alternatename directive to tell the linker to default a specific |