We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae6db86 commit 3d718d0Copy full SHA for 3d718d0
compiler-rt/lib/asan/asan_rtl.cpp
@@ -74,7 +74,7 @@ static void CheckUnwind() {
74
static int asan_inited = 0;
75
static int asan_init_is_running = 0;
76
77
-static void SetAsanInited(u32 val) { asan_inited = val; }
+static void SetAsanInited() { asan_inited = 1; }
78
79
static void SetAsanInitIsRunning(u32 val) { asan_init_is_running = val; }
80
@@ -470,7 +470,7 @@ static void AsanInitInternal() {
470
// On Linux AsanThread::ThreadStart() calls malloc() that's why asan_inited
471
// should be set to 1 prior to initializing the threads.
472
replace_intrin_cached = flags()->replace_intrin;
473
- SetAsanInited(1);
+ SetAsanInited();
474
SetAsanInitIsRunning(0);
475
476
if (flags()->atexit)
0 commit comments