mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
replace LeakSanitizerIsTurnedOffForTheCurrentProcess with __lsan_is_turned_off, but this time hide it under __has_feature(address_sanitizer); also include <sanitizer/lsan_interface.h>
llvm-svn: 199303
This commit is contained in:
parent
42bcbaed77
commit
28ba07921c
@ -181,9 +181,11 @@ int main(int argc, char **argv) {
|
||||
return TableGenMain(argv[0], &LLVMTableGenMain);
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
#ifdef __has_feature
|
||||
#if __has_feature(address_sanitizer)
|
||||
#include <sanitizer/lsan_interface.h>
|
||||
// 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"
|
||||
// very interesting to fix. See compiler-rt/include/sanitizer/lsan_interface.h .
|
||||
int __lsan_is_turned_off() { return 1; }
|
||||
#endif // __has_feature(address_sanitizer)
|
||||
#endif // defined(__has_feature)
|
||||
|
Loading…
Reference in New Issue
Block a user