Skip to content

Commit d87f7db

Browse files
committed
Get rid of duplicate static function for initialization
1 parent 20e7e62 commit d87f7db

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

compiler-rt/lib/rtsan/rtsan.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,10 @@ static void SetInitialized() {
2525
atomic_store(&rtsan_initialized, 1, memory_order_release);
2626
}
2727

28-
static bool IsInitialized() {
29-
return atomic_load(&rtsan_initialized, memory_order_acquire) == 1;
30-
}
31-
3228
extern "C" {
3329

3430
SANITIZER_INTERFACE_ATTRIBUTE void __rtsan_init() {
35-
CHECK(!IsInitialized());
31+
CHECK(!__rtsan_is_initialized());
3632
InitializeInterceptors();
3733
SetInitialized();
3834
}

0 commit comments

Comments
 (0)