[PATCH] [ASan/Win] Fix PR22545 __asan_unregister_globals is not called when using -MD runtimes
Alexey Samsonov
vonosmas at gmail.com
Thu Feb 12 14:07:56 PST 2015
Looks OK to me, but let's see if Kostya is fine with this change.
================
Comment at: lib/Transforms/Instrumentation/AddressSanitizer.cpp:1286
@@ +1285,3 @@
+ // On other platforms, just append a call to the module dtors.
+ if (Triple(M.getTargetTriple()).isOSWindows()) {
+ Function *AtExit = checkInterfaceFunction(M.getOrInsertFunction(
----------------
if (TargetTriple.isOSWindows()) { ... }
http://reviews.llvm.org/D7597
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list