summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libsanitizer/lsan/lsan.cc1
-rw-r--r--libsanitizer/lsan/lsan_common.cc3
2 files changed, 3 insertions, 1 deletions
diff --git a/libsanitizer/lsan/lsan.cc b/libsanitizer/lsan/lsan.cc
index c8ea483d676..33051cef1d5 100644
--- a/libsanitizer/lsan/lsan.cc
+++ b/libsanitizer/lsan/lsan.cc
@@ -22,7 +22,6 @@
bool lsan_inited;
bool lsan_init_is_running;
-bool lsan_check_in_progress;
namespace __lsan {
diff --git a/libsanitizer/lsan/lsan_common.cc b/libsanitizer/lsan/lsan_common.cc
index 23408508ecf..866e23f4049 100644
--- a/libsanitizer/lsan/lsan_common.cc
+++ b/libsanitizer/lsan/lsan_common.cc
@@ -24,6 +24,9 @@
#include "sanitizer_common/sanitizer_report_decorator.h"
#if CAN_SANITIZE_LEAKS
+// TODO (chefmax): Figure out how we can avoid pollutting global namespace.
+bool lsan_check_in_progress;
+
namespace __lsan {
// This mutex is used to prevent races between DoLeakCheck and IgnoreObject, and