diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2018-01-22 19:07:11 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2018-01-22 19:07:11 +0000 |
commit | 68aab34f2d52842a8a47a7d01ab8dbd150cc976c (patch) | |
tree | f89988ce69a324e4a956f8ac1bb49ea1f10b730f /llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | |
parent | 312443fd837af771f2e3dd4d31ba2a42fa7e1bc7 (diff) | |
download | bcm5719-llvm-68aab34f2d52842a8a47a7d01ab8dbd150cc976c.tar.gz bcm5719-llvm-68aab34f2d52842a8a47a7d01ab8dbd150cc976c.zip |
asan: allow inline instrumentation for the kernel
Currently ASan instrumentation pass forces callback
instrumentation when applied to the kernel.
This patch changes the current behavior to allow
using inline instrumentation in this case.
Authored by andreyknvl. Reviewed in:
https://reviews.llvm.org/D42384
llvm-svn: 323140
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index 8e39f24d819..68b4146e254 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -2494,7 +2494,6 @@ bool AddressSanitizer::runOnFunction(Function &F) { } bool UseCalls = - CompileKernel || (ClInstrumentationWithCallsThreshold >= 0 && ToInstrument.size() > (unsigned)ClInstrumentationWithCallsThreshold); const DataLayout &DL = F.getParent()->getDataLayout(); |