[compiler-rt] 3d718d0 - [NFC][asan] Remove SetAsanInited parameter
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 4 15:21:24 PST 2023
Author: Vitaly Buka
Date: 2023-12-04T15:21:14-08:00
New Revision: 3d718d0ebac232f304a0a074610de2d9652ab21f
URL: https://github.com/llvm/llvm-project/commit/3d718d0ebac232f304a0a074610de2d9652ab21f
DIFF: https://github.com/llvm/llvm-project/commit/3d718d0ebac232f304a0a074610de2d9652ab21f.diff
LOG: [NFC][asan] Remove SetAsanInited parameter
Added:
Modified:
compiler-rt/lib/asan/asan_rtl.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/asan/asan_rtl.cpp b/compiler-rt/lib/asan/asan_rtl.cpp
index 45bd4e3c18f0f..04ecd20821fa6 100644
--- a/compiler-rt/lib/asan/asan_rtl.cpp
+++ b/compiler-rt/lib/asan/asan_rtl.cpp
@@ -74,7 +74,7 @@ static void CheckUnwind() {
static int asan_inited = 0;
static int asan_init_is_running = 0;
-static void SetAsanInited(u32 val) { asan_inited = val; }
+static void SetAsanInited() { asan_inited = 1; }
static void SetAsanInitIsRunning(u32 val) { asan_init_is_running = val; }
@@ -470,7 +470,7 @@ static void AsanInitInternal() {
// On Linux AsanThread::ThreadStart() calls malloc() that's why asan_inited
// should be set to 1 prior to initializing the threads.
replace_intrin_cached = flags()->replace_intrin;
- SetAsanInited(1);
+ SetAsanInited();
SetAsanInitIsRunning(0);
if (flags()->atexit)
More information about the llvm-commits
mailing list