summaryrefslogtreecommitdiff
path: root/lib/asan/asan_win.cc
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2016-08-29 17:16:59 +0000
committerVitaly Buka <vitalybuka@google.com>2016-08-29 17:16:59 +0000
commitbcfcbdc86ef5aad881a04a657a1b4d64f39f6344 (patch)
tree3511669286a9ba95675b20b5b51d75061509600d /lib/asan/asan_win.cc
parent7dc1023d937fadb8c7f72ded30c2b411634e2008 (diff)
[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
Diffstat (limited to 'lib/asan/asan_win.cc')
-rw-r--r--lib/asan/asan_win.cc6
1 files changed, 0 insertions, 6 deletions
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