llvm.org GIT mirror llvm / 48c5bd3
[TableGen] Ensure that __lsan_is_turned_off isn't removed by DCE in llvm-tblgen Summary: Since asan is linked dynamically on Darwin, the weak interface symbol is removed by -Wl,-dead_strip. Reviewers: kcc, compnerd, aaron.ballman Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D37636 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312914 91177308-0d34-0410-b5e6-96231b3b80d8 Francis Ricci 2 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
216216 #include
217217 // Disable LeakSanitizer for this binary as it has too many leaks that are not
218218 // very interesting to fix. See compiler-rt/include/sanitizer/lsan_interface.h .
219 int __lsan_is_turned_off() { return 1; }
219 LLVM_ATTRIBUTE_USED int __lsan_is_turned_off() { return 1; }
220220 #endif // __has_feature(address_sanitizer)
221221 #endif // defined(__has_feature)