Skip to content

Commit 04fb520

Browse files
author
Doug Wyatt
committed
Clean up nits from review.
1 parent 930e1fa commit 04fb520

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/lib/Sema/SemaFunctionEffects.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,8 +1159,8 @@ class Analyzer {
11591159

11601160
bool VisitObjCAtSynchronizedStmt(ObjCAtSynchronizedStmt *Sync) {
11611161
// Under the hood, this calls objc_sync_enter and objc_sync_exit, wrapped
1162-
// in a @try/@finally block. Diagnose this somewhat generically as "ObjC"
1163-
// messaging.
1162+
// in a @try/@finally block. Diagnose this generically as "ObjC
1163+
// messaging".
11641164
diagnoseLanguageConstruct(FunctionEffect::FE_ExcludeObjCMessageSend,
11651165
ViolationID::AccessesObjCMethodOrProperty,
11661166
Sync->getBeginLoc());

clang/test/SemaObjCXX/attr-nonblocking-constraints.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ void nb5() [[clang::nonblocking]] {
3636

3737
@synchronized(someLock) { // expected-warning {{function with 'nonblocking' attribute must not access ObjC methods or properties}}
3838
}
39-
}
39+
}

0 commit comments

Comments
 (0)