[PATCH] D118162: [tblgen] Disable lsan weak hook when building with msvc
pierre gousseau via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 27 04:14:47 PST 2022
pgousseau updated this revision to Diff 403588.
pgousseau edited the summary of this revision.
pgousseau added a comment.
Updating patch following comments, using __GNUC__ instead of !_WIN32 which was wrong.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118162/new/
https://reviews.llvm.org/D118162
Files:
llvm/utils/TableGen/TableGen.cpp
Index: llvm/utils/TableGen/TableGen.cpp
===================================================================
--- llvm/utils/TableGen/TableGen.cpp
+++ llvm/utils/TableGen/TableGen.cpp
@@ -289,7 +289,8 @@
#define __has_feature(x) 0
#endif
-#if __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__) || \
+#if __has_feature(address_sanitizer) || \
+ (defined(__SANITIZE_ADDRESS__) && defined(__GNUC__)) || \
__has_feature(leak_sanitizer)
#include <sanitizer/lsan_interface.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118162.403588.patch
Type: text/x-patch
Size: 562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220127/e00740db/attachment.bin>
More information about the llvm-commits
mailing list