File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
lib/Transforms/Instrumentation
test/Instrumentation/RealtimeSanitizer Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ RealtimeSanitizerPass::RealtimeSanitizerPass(
36
36
37
37
PreservedAnalyses RealtimeSanitizerPass::run (Function &F,
38
38
AnalysisManager<Function> &AM) {
39
- if (F.hasFnAttribute (Attribute::NonBlocking )) {
39
+ if (F.hasFnAttribute (Attribute::SanitizeRealtime )) {
40
40
insertCallAtFunctionEntryPoint (F, " __rtsan_realtime_enter" );
41
41
insertCallAtAllFunctionExitPoints (F, " __rtsan_realtime_exit" );
42
42
return PreservedAnalyses::none ();
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ define noundef i32 @main() #2 {
16
16
ret i32 0
17
17
}
18
18
19
- attributes #0 = { mustprogress noinline nonblocking optnone ssp uwtable (sync) }
19
+ attributes #0 = { mustprogress noinline sanitize_realtime optnone ssp uwtable (sync) }
20
20
21
21
; RealtimeSanitizer pass should insert __rtsan_realtime_enter right after function definition
22
22
; CHECK-LABEL: @violation()
Original file line number Diff line number Diff line change 13
13
ret i32 0
14
14
}
15
15
16
- attributes #0 = { mustprogress noinline nonblocking optnone ssp uwtable (sync) }
16
+ attributes #0 = { mustprogress noinline sanitize_realtime optnone ssp uwtable (sync) }
17
17
18
18
; RealtimeSanitizer pass should insert __rtsan_realtime_enter right after function definition
19
19
; CHECK-LABEL: @example(
You can’t perform that action at this time.
0 commit comments