Skip to content

Commit 9a14142

Browse files
Merge pull request #75029 from Sajjon/cyon_typo_batch__test__SILGen
Typos: `test/SILGen`
2 parents e65647c + 89db0cd commit 9a14142

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

test/SILGen/dynamically_replaceable.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,8 @@ public func testWithLocalFun() {
401401
localLocalFun()
402402
}
403403
localFun()
404-
let unamedClosure = { print("foo") }
405-
unamedClosure()
404+
let unnamedClosure = { print("foo") }
405+
unnamedClosure()
406406
}
407407

408408
@propertyWrapper

test/SILGen/extern_c.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public func publicVisibility(_ x: Int) -> Int
1414

1515
// CHECK-DAG: sil @private_visible : $@convention(c) (Int) -> Int
1616
@_extern(c, "private_visible")
17-
private func privateVisiblity(_ x: Int) -> Int
17+
private func privateVisibility(_ x: Int) -> Int
1818

1919
// CHECK-DAG: sil hidden_external @withoutCName : $@convention(c) () -> Int
2020
@_extern(c)
@@ -35,7 +35,7 @@ func main() {
3535
_ = publicVisibility(42)
3636
// CHECK-DAG: [[F4:%.+]] = function_ref @private_visible : $@convention(c) (Int) -> Int
3737
// CHECK-DAG: apply [[F4]]({{.*}}) : $@convention(c) (Int) -> Int
38-
_ = privateVisiblity(24)
38+
_ = privateVisibility(24)
3939
// CHECK-DAG: [[F5:%.+]] = function_ref @withoutCName : $@convention(c) () -> Int
4040
// CHECK-DAG: apply [[F5]]() : $@convention(c) () -> Int
4141
_ = withoutCName()

test/SILGen/initializers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ class ThrowDerivedClass : ThrowBaseClass {
800800
// CHECK: try_apply [[UNWRAP_FN]]({{%.*}}) : $@convention(thin) (Int) -> (Int, @error any Error), normal [[NORMAL_BB:bb[0-9]+]], error [[ERROR_BB:bb[0-9]+]]
801801
//
802802
// Now we emit the call to the initializer. Notice how we return self back to
803-
// its memory locatio nbefore any other work is done.
803+
// its memory location before any other work is done.
804804
// CHECK: [[NORMAL_BB]](
805805
// CHECK: [[INIT_FN:%.*]] = function_ref @$s21failable_initializers14ThrowBaseClassC6noFailACSi_tcfc : $@convention(method)
806806
// CHECK: [[BASE_SELF_INIT:%.*]] = apply [[INIT_FN]]({{%.*}}, [[BASE_SELF]])

test/SILGen/noimplicitcopy_borrowing_parameters.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func testLoadableBorrowingEnum(_ x: borrowing LoadableEnum) {
212212
// CHECK: copy_addr [[UNWRAP]] to [init] [[STACK]]
213213
// CHECK: destroy_addr [[STACK]]
214214
// CHECK: [[UNWRAP:%.*]] = moveonlywrapper_to_copyable_addr [[CHECK]]
215-
// TODO: We probably want the unwrap to be on the struct_element_addr, not the other wya around.
215+
// TODO: We probably want the unwrap to be on the struct_element_addr, not the other way around.
216216
// CHECK: [[GEP:%.*]] = struct_element_addr [[UNWRAP]]
217217
// CHECK: [[STACK:%.*]] = alloc_stack
218218
// CHECK: copy_addr [[GEP]] to [init] [[STACK]]

0 commit comments

Comments
 (0)