[PATCH] [ASan/Win] Fix PR22545 __asan_unregister_globals is not called when using -MD runtimes

Kostya Serebryany kcc at google.com
Wed Feb 18 11:15:03 PST 2015


================
Comment at: lib/Transforms/Instrumentation/AddressSanitizer.cpp:1286
@@ +1285,3 @@
+  // to work around (See PR22545).
+  if (TargetTriple.isKnownWindowsMSVCEnvironment() ||
+      TargetTriple.isWindowsItaniumEnvironment()) {
----------------
why can't you call atexit in the run-time lib? 
Also, I am not a fan of OS-specific changes in the instrumentation pass.

http://reviews.llvm.org/D7597

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






More information about the llvm-commits mailing list