[llvm] r281618 - Fix silly mistake introduced here : https://reviews.llvm.org/D24566

Etienne Bergeron via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 15 08:35:59 PDT 2016


Author: etienneb
Date: Thu Sep 15 10:35:59 2016
New Revision: 281618

URL: http://llvm.org/viewvc/llvm-project?rev=281618&view=rev
Log:
Fix silly mistake introduced here : https://reviews.llvm.org/D24566
Asan bots are currently broken without this patch.

Modified:
    llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Modified: llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp?rev=281618&r1=281617&r2=281618&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp Thu Sep 15 10:35:59 2016
@@ -1883,7 +1883,7 @@ bool AddressSanitizer::runOnFunction(Fun
   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




More information about the llvm-commits mailing list