llvm.org GIT mirror llvm / ab39685
reapply r198858: Disable LeakSanitizer in TableGen binaries, see PR18325; this time LeakSanitizerIsTurnedOffForTheCurrentProcess is used instead of __lsan_is_turned_off git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198922 91177308-0d34-0410-b5e6-96231b3b80d8 Kostya Serebryany 6 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. LeakSanitizerIsTurnedOffForTheCurrentProcess is
186 // explained in compiler-rt/include/sanitizer/lsan_interface.h
187 int LeakSanitizerIsTurnedOffForTheCurrentProcess() { return 1; }
188 } // extern "C"