llvm.org GIT mirror llvm / c50299b
Disable LeakSanitizer in TableGen binaries, see PR18325 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198858 91177308-0d34-0410-b5e6-96231b3b80d8 Kostya Serebryany 5 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
179179
180180 return TableGenMain(argv[0], &LLVMTableGenMain);
181181 }
182
183 extern "C" {
184 // Disable LeakSanitizer for this binary as it has too many leaks that are not
185 // very interesting to fix. __lsan_is_turned_off is explained in
186 // compiler-rt/include/sanitizer/lsan_interface.h
187 int __lsan_is_turned_off() { return 1; }
188 } // extern "C"