File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ __rtsan_expect_not_realtime(const char *intercepted_function_name);
57
57
58
58
namespace __rtsan {
59
59
#if (defined(__has_feature) && __has_feature(realtime_sanitizer)) || \
60
- defined (RTSAN_ENABLED)
60
+ SANITIZE_REALTIME
61
61
62
62
void Initialize () { __rtsan_ensure_initialized (); }
63
63
@@ -109,8 +109,8 @@ class ScopedDisabler {
109
109
ScopedDisabler () {}
110
110
};
111
111
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
114
114
} // namespace __rtsan
115
115
#endif // __cplusplus
116
116
Original file line number Diff line number Diff line change 1
- // RUN: %clangxx -DRTSAN_ENABLED -fsanitize=realtime %s -o %t
1
+ // RUN: %clangxx -DSANITIZE_REALTIME=1 -fsanitize=realtime %s -o %t
2
2
// 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
4
4
// RUN: %clangxx %s -o - -S -emit-llvm | FileCheck %s --check-prefix=CHECK-DISABLED-IR
5
5
// UNSUPPORTED: ios
6
6
You can’t perform that action at this time.
0 commit comments