mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
replace LeakSanitizerIsTurnedOffForTheCurrentProcess with __lsan_is_turned_off, but this time hide it under __has_feature(address_sanitizer); also include <sanitizer/lsan_interface.h>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199303 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -181,9 +181,11 @@ int main(int argc, char **argv) {
|
|||||||
return TableGenMain(argv[0], &LLVMTableGenMain);
|
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
|
// Disable LeakSanitizer for this binary as it has too many leaks that are not
|
||||||
// very interesting to fix. LeakSanitizerIsTurnedOffForTheCurrentProcess is
|
// very interesting to fix. See compiler-rt/include/sanitizer/lsan_interface.h .
|
||||||
// explained in compiler-rt/include/sanitizer/lsan_interface.h
|
int __lsan_is_turned_off() { return 1; }
|
||||||
int LeakSanitizerIsTurnedOffForTheCurrentProcess() { return 1; }
|
#endif // __has_feature(address_sanitizer)
|
||||||
} // extern "C"
|
#endif // defined(__has_feature)
|
||||||
|
Reference in New Issue
Block a user