[compiler-rt] e4b02c6 - [NFC][lsan] Make mutex static
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Sun May 28 21:52:36 PDT 2023
Author: Vitaly Buka
Date: 2023-05-28T21:52:20-07:00
New Revision: e4b02c61d1e69d32221a73e5d40af5c0e1e5138c
URL: https://github.com/llvm/llvm-project/commit/e4b02c61d1e69d32221a73e5d40af5c0e1e5138c
DIFF: https://github.com/llvm/llvm-project/commit/e4b02c61d1e69d32221a73e5d40af5c0e1e5138c.diff
LOG: [NFC][lsan] Make mutex static
Added:
Modified:
compiler-rt/lib/lsan/lsan_common.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/lsan/lsan_common.cpp b/compiler-rt/lib/lsan/lsan_common.cpp
index 21430e39e069..74cd49977cd3 100644
--- a/compiler-rt/lib/lsan/lsan_common.cpp
+++ b/compiler-rt/lib/lsan/lsan_common.cpp
@@ -42,7 +42,7 @@ namespace __lsan {
// This mutex is used to prevent races between DoLeakCheck and IgnoreObject, and
// also to protect the global list of root regions.
-Mutex global_mutex;
+static Mutex global_mutex;
Flags lsan_flags;
More information about the llvm-commits
mailing list