Skip to content

Commit c76269c

Browse files
committed
Comment typos.
1 parent 243b91a commit c76269c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/SILOptimizer/Mandatory/AccessEnforcementSelection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ struct AccessEnforcementSelection : SILFunctionTransform {
375375
// escape within the callee, so static enforcement is always sufficient.
376376
//
377377
// FIXME: `inout_aliasable` are not currently enforced on the caller
378-
// side. Consequenctly, using static enforcement for noescape closures
378+
// side. Consequently, using static enforcement for noescape closures
379379
// may fails to diagnose certain violations.
380380
setStaticEnforcement(access);
381381
break;

test/Interpreter/enforce_exclusive_access.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ ExclusiveAccessTestSuite.test("ModifyFollowedByModify") {
101101
globalX = X() // no-trap
102102
}
103103

104-
// FIXME: This should be a static diagnostics.
105-
// Once this radar is fixed, conirm that a it is covered by a static diagnostic
104+
// FIXME: This should be covered by static diagnostics.
105+
// Once this radar is fixed, confirm that a it is covered by a static diagnostic
106106
// (-verify) test in exclusivity_static_diagnostics.sil.
107107
// <rdar://problem/32061282> Enforce exclusive access in noescape closures.
108108
//
@@ -120,8 +120,8 @@ ExclusiveAccessTestSuite.test("ModifyFollowedByModify") {
120120
// }
121121
//}
122122

123-
// FIXME: This should be a static diagnostics.
124-
// Once this radar is fixed, conirm that a it is covered by a static diagnostic
123+
// FIXME: This should be covered by static diagnostics.
124+
// Once this radar is fixed, confirm that a it is covered by a static diagnostic
125125
// (-verify) test in exclusivity_static_diagnostics.sil.
126126
// <rdar://problem/32061282> Enforce exclusive access in noescape closures.
127127
//
@@ -139,8 +139,8 @@ ExclusiveAccessTestSuite.test("ModifyFollowedByModify") {
139139
// }
140140
//}
141141

142-
// FIXME: This should be a static diagnostics.
143-
// Once this radar is fixed, conirm that a it is covered by a static diagnostic
142+
// FIXME: This should be covered by static diagnostics.
143+
// Once this radar is fixed, confirm that a it is covered by a static diagnostic
144144
// (-verify) test in exclusivity_static_diagnostics.sil.
145145
// <rdar://problem/32061282> Enforce exclusive access in noescape closures.
146146
//

0 commit comments

Comments
 (0)