[PATCH] TSan: Use `createSanitizerCtor` to create ctor, and call `__tsan_init`

Dmitry Vyukov dvyukov at google.com
Mon Apr 27 07:01:32 PDT 2015


================
Comment at: lib/Transforms/Instrumentation/ThreadSanitizer.cpp:332
@@ -330,1 +331,3 @@
 bool ThreadSanitizer::runOnFunction(Function &F) {
+  if (&F == TsanCtorFunction)
+    return false;
----------------
Is this necessary for something? Or merely a precaution?
In either case please add a comment as to why this check is here.

http://reviews.llvm.org/D8779

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list