Skip to content

Commit 5f91c56

Browse files
committed
Tweaked name of macro
1 parent bed7e12 commit 5f91c56

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

compiler-rt/include/sanitizer/rtsan_interface.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ __rtsan_expect_not_realtime(const char *intercepted_function_name);
5757

5858
namespace __rtsan {
5959
#if (defined(__has_feature) && __has_feature(realtime_sanitizer)) || \
60-
defined(RTSAN_ENABLED)
60+
SANITIZE_REALTIME
6161

6262
void Initialize() { __rtsan_ensure_initialized(); }
6363

@@ -109,8 +109,8 @@ class ScopedDisabler {
109109
ScopedDisabler() {}
110110
};
111111

112-
#endif // defined(__has_feature) && __has_feature(realtime_sanitizer) ||
113-
// defined(RTSAN_ENABLED)
112+
#endif // (defined(__has_feature) && __has_feature(realtime_sanitizer)) ||
113+
// SANITIZE_REALTIME
114114
} // namespace __rtsan
115115
#endif // __cplusplus
116116

compiler-rt/test/rtsan/enabler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %clangxx -DRTSAN_ENABLED -fsanitize=realtime %s -o %t
1+
// RUN: %clangxx -DSANITIZE_REALTIME=1 -fsanitize=realtime %s -o %t
22
// RUN: not %run %t 2>&1 | FileCheck %s
3-
// RUN: %clangxx %s -DRTSAN_ENABLED -o - -S -emit-llvm | FileCheck %s --check-prefix=CHECK-ENABLED-IR
3+
// RUN: %clangxx %s -DSANITIZE_REALTIME=1 -o - -S -emit-llvm | FileCheck %s --check-prefix=CHECK-ENABLED-IR
44
// RUN: %clangxx %s -o - -S -emit-llvm | FileCheck %s --check-prefix=CHECK-DISABLED-IR
55
// UNSUPPORTED: ios
66

0 commit comments

Comments
 (0)