Skip to content

Commit 6be30bb

Browse files
committed
Update attribute names to sanitize_realtime
1 parent 40f8769 commit 6be30bb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

llvm/lib/Transforms/Instrumentation/RealtimeSanitizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ RealtimeSanitizerPass::RealtimeSanitizerPass(
3636

3737
PreservedAnalyses RealtimeSanitizerPass::run(Function &F,
3838
AnalysisManager<Function> &AM) {
39-
if (F.hasFnAttribute(Attribute::NonBlocking)) {
39+
if (F.hasFnAttribute(Attribute::SanitizeRealtime)) {
4040
insertCallAtFunctionEntryPoint(F, "__rtsan_realtime_enter");
4141
insertCallAtAllFunctionExitPoints(F, "__rtsan_realtime_exit");
4242
return PreservedAnalyses::none();

llvm/test/Instrumentation/RealtimeSanitizer/rtsan.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ define noundef i32 @main() #2 {
1616
ret i32 0
1717
}
1818

19-
attributes #0 = { mustprogress noinline nonblocking optnone ssp uwtable(sync) }
19+
attributes #0 = { mustprogress noinline sanitize_realtime optnone ssp uwtable(sync) }
2020

2121
; RealtimeSanitizer pass should insert __rtsan_realtime_enter right after function definition
2222
; CHECK-LABEL: @violation()

llvm/test/Instrumentation/RealtimeSanitizer/rtsan_multi_return.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ else:
1313
ret i32 0
1414
}
1515

16-
attributes #0 = { mustprogress noinline nonblocking optnone ssp uwtable(sync) }
16+
attributes #0 = { mustprogress noinline sanitize_realtime optnone ssp uwtable(sync) }
1717

1818
; RealtimeSanitizer pass should insert __rtsan_realtime_enter right after function definition
1919
; CHECK-LABEL: @example(

0 commit comments

Comments
 (0)