diff options
author | Etienne Bergeron <etienneb@google.com> | 2016-09-15 15:35:59 +0000 |
---|---|---|
committer | Etienne Bergeron <etienneb@google.com> | 2016-09-15 15:35:59 +0000 |
commit | 52e4743e243f95d06306b189580a463d7a9360a7 (patch) | |
tree | 3c64e4f7e7a6056989bcadf04fc0624c946d4460 /llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | |
parent | c0669ce984b2006a59f1f024e32f4c21b81dd084 (diff) | |
download | bcm5719-llvm-52e4743e243f95d06306b189580a463d7a9360a7.tar.gz bcm5719-llvm-52e4743e243f95d06306b189580a463d7a9360a7.zip |
Fix silly mistake introduced here : https://reviews.llvm.org/D24566
Asan bots are currently broken without this patch.
llvm-svn: 281618
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index f2c0cc2a998..62acd117af7 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -1883,7 +1883,7 @@ bool AddressSanitizer::runOnFunction(Function &F) { if (&F == AsanCtorFunction) return false; if (F.getLinkage() == GlobalValue::AvailableExternallyLinkage) return false; if (!ClDebugFunc.empty() && ClDebugFunc == F.getName()) return false; - if (F.getName().startswith("__asan_") != std::string::npos) return false; + if (F.getName().startswith("__asan_")) return false; // If needed, insert __asan_init before checking for SanitizeAddress attr. // This function needs to be called even if the function body is not |