mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Disable LeakSanitizer in TableGen binaries, see PR18325
llvm-svn: 198858
This commit is contained in:
parent
4b218fdee6
commit
dfd3aa3e35
@ -180,3 +180,10 @@ int main(int argc, char **argv) {
|
||||
|
||||
return TableGenMain(argv[0], &LLVMTableGenMain);
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
// Disable LeakSanitizer for this binary as it has too many leaks that are not
|
||||
// very interesting to fix. __lsan_is_turned_off is explained in
|
||||
// compiler-rt/include/sanitizer/lsan_interface.h
|
||||
int __lsan_is_turned_off() { return 1; }
|
||||
} // extern "C"
|
||||
|
Loading…
Reference in New Issue
Block a user