[PATCH] D24566: [compiler-rt] Avoid instrumenting sanitizer functions

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 14 15:19:39 PDT 2016


kcc added inline comments.

================
Comment at: lib/Transforms/Instrumentation/AddressSanitizer.cpp:1886
@@ -1889,1 +1885,3 @@
+  if (!ClDebugFunc.empty() && ClDebugFunc == F.getName()) return false;
+  if (F.getName().find("__asan_") != std::string::npos) return false;
 
----------------
please use startswith() instead of find()


https://reviews.llvm.org/D24566





More information about the llvm-commits mailing list