Skip to content
Snippets Groups Projects
Commit d359c208 authored by Kostya Serebryany's avatar Kostya Serebryany
Browse files

reapply r198858: Disable LeakSanitizer in TableGen binaries, see PR18325; this...

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/cfe/trunk@198922 91177308-0d34-0410-b5e6-96231b3b80d8
parent d89a6c24
No related branches found
No related tags found
No related merge requests found
...@@ -263,3 +263,10 @@ int main(int argc, char **argv) { ...@@ -263,3 +263,10 @@ int main(int argc, char **argv) {
return TableGenMain(argv[0], &ClangTableGenMain); return TableGenMain(argv[0], &ClangTableGenMain);
} }
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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment