[PATCH] D37636: [TableGen] Ensure that __lsan_is_turned_off isn't removed by DCE in llvm-tblgen
Francis Ricci via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 11 06:52:00 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL312914: [TableGen] Ensure that __lsan_is_turned_off isn't removed by DCE in llvm-tblgen (authored by fjricci).
Repository:
rL LLVM
https://reviews.llvm.org/D37636
Files:
llvm/trunk/utils/TableGen/TableGen.cpp
Index: llvm/trunk/utils/TableGen/TableGen.cpp
===================================================================
--- llvm/trunk/utils/TableGen/TableGen.cpp
+++ llvm/trunk/utils/TableGen/TableGen.cpp
@@ -217,6 +217,6 @@
#include <sanitizer/lsan_interface.h>
// Disable LeakSanitizer for this binary as it has too many leaks that are not
// very interesting to fix. See compiler-rt/include/sanitizer/lsan_interface.h .
-int __lsan_is_turned_off() { return 1; }
+LLVM_ATTRIBUTE_USED int __lsan_is_turned_off() { return 1; }
#endif // __has_feature(address_sanitizer)
#endif // defined(__has_feature)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37636.114587.patch
Type: text/x-patch
Size: 605 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170911/668bde95/attachment.bin>
More information about the llvm-commits
mailing list