Skip to content

Commit 3d718d0

Browse files
committed
[NFC][asan] Remove SetAsanInited parameter
1 parent ae6db86 commit 3d718d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/asan/asan_rtl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static void CheckUnwind() {
7474
static int asan_inited = 0;
7575
static int asan_init_is_running = 0;
7676

77-
static void SetAsanInited(u32 val) { asan_inited = val; }
77+
static void SetAsanInited() { asan_inited = 1; }
7878

7979
static void SetAsanInitIsRunning(u32 val) { asan_init_is_running = val; }
8080

@@ -470,7 +470,7 @@ static void AsanInitInternal() {
470470
// On Linux AsanThread::ThreadStart() calls malloc() that's why asan_inited
471471
// should be set to 1 prior to initializing the threads.
472472
replace_intrin_cached = flags()->replace_intrin;
473-
SetAsanInited(1);
473+
SetAsanInited();
474474
SetAsanInitIsRunning(0);
475475

476476
if (flags()->atexit)

0 commit comments

Comments
 (0)