Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit ca19eaa

Browse files
committed
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@323140 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 7bbe32b commit ca19eaa

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/Transforms/Instrumentation/AddressSanitizer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2494,7 +2494,6 @@ bool AddressSanitizer::runOnFunction(Function &F) {
24942494
}
24952495

24962496
bool UseCalls =
2497-
CompileKernel ||
24982497
(ClInstrumentationWithCallsThreshold >= 0 &&
24992498
ToInstrument.size() > (unsigned)ClInstrumentationWithCallsThreshold);
25002499
const DataLayout &DL = F.getParent()->getDataLayout();

0 commit comments

Comments
 (0)