summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/TableGen/TableGen.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp
index b5c3ca760d..669127c3b0 100644
--- a/utils/TableGen/TableGen.cpp
+++ b/utils/TableGen/TableGen.cpp
@@ -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"