From bcfcbdc86ef5aad881a04a657a1b4d64f39f6344 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Mon, 29 Aug 2016 17:16:59 +0000 Subject: [asan] Remove runtime flag detect_stack_use_after_scope Summary: We are going to use store instructions to poison some allocas. Runtime flag will require branching in instrumented code on every lifetime intrinsic. We'd like to avoid that. Reviewers: eugenis Subscribers: llvm-commits, kubabrecka Differential Revision: https://reviews.llvm.org/D23967 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@279981 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/asan/asan_win.cc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/asan/asan_win.cc') diff --git a/lib/asan/asan_win.cc b/lib/asan/asan_win.cc index 0616e4087..5b29aec8c 100644 --- a/lib/asan/asan_win.cc +++ b/lib/asan/asan_win.cc @@ -37,12 +37,6 @@ 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 absence 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 -- cgit v1.2.3