From: Etienne Bergeron Date: Thu, 15 Sep 2016 15:35:59 +0000 (+0000) Subject: Fix silly mistake introduced here : https://reviews.llvm.org/D24566 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51832f72bdb95144dd04e36c26a4ac0be49eb769;p=llvm Fix silly mistake introduced here : https://reviews.llvm.org/D24566 Asan bots are currently broken without this patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281618 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/lib/Transforms/Instrumentation/AddressSanitizer.cpp index f2c0cc2a998..62acd117af7 100644 --- a/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/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