mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-13 07:50:50 +00:00
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
This commit is contained in:
parent
7ff05025b0
commit
ab39685c77
@ -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. LeakSanitizerIsTurnedOffForTheCurrentProcess is
|
||||
// explained in compiler-rt/include/sanitizer/lsan_interface.h
|
||||
int LeakSanitizerIsTurnedOffForTheCurrentProcess() { return 1; }
|
||||
} // extern "C"
|
||||
|
Loading…
x
Reference in New Issue
Block a user