Skip to content

Commit

Permalink
Get rid of duplicate static function for initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
cjappl committed Aug 11, 2024
1 parent 20e7e62 commit d87f7db
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions compiler-rt/lib/rtsan/rtsan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,10 @@ static void SetInitialized() {
atomic_store(&rtsan_initialized, 1, memory_order_release);
}

static bool IsInitialized() {
return atomic_load(&rtsan_initialized, memory_order_acquire) == 1;
}

extern "C" {

SANITIZER_INTERFACE_ATTRIBUTE void __rtsan_init() {
CHECK(!IsInitialized());
CHECK(!__rtsan_is_initialized());
InitializeInterceptors();
SetInitialized();
}
Expand Down

0 comments on commit d87f7db

Please sign in to comment.