Skip to content

Commit 0c74fe6

Browse files
authored
[test/IRGen] Fix typos
1 parent 5aa9d3e commit 0c74fe6

10 files changed

+16
-16
lines changed

test/IRGen/Inputs/weak_import_availability_helper.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extension ConditionallyAvailableStruct {
2626
}
2727

2828
@available(macOS, unavailable)
29-
public struct UnvailableStruct {
29+
public struct UnavailableStruct {
3030
public func unavailableMethod() {}
3131
}
3232

test/IRGen/big_types_corner_cases.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ bb0(%0 : $Builtin.Int64, %1 : $() -> @owned BigStruct):
126126
return undef : $BigStruct
127127
}
128128

129-
// CHECK-LABEL: define swiftcc void @poninter_to_mod_ret(ptr %0, ptr %1)
129+
// CHECK-LABEL: define swiftcc void @pointer_to_mod_ret(ptr %0, ptr %1)
130130
// CHECK: [[CALL:%.*]] = call swiftcc { ptr, ptr } %0(ptr swiftself %1)
131131
// CHECK: extractvalue { ptr, ptr } [[CALL]], 0
132132
// CHECK: extractvalue { ptr, ptr } [[CALL]], 1
133133
// CHECK: ret void
134-
sil @poninter_to_mod_ret : $@convention(thin) (@owned @callee_owned () -> @owned @callee_owned (@owned Builtin.Int64) -> @owned BigStruct) -> () {
134+
sil @pointer_to_mod_ret : $@convention(thin) (@owned @callee_owned () -> @owned @callee_owned (@owned Builtin.Int64) -> @owned BigStruct) -> () {
135135
bb0(%funcpointer : $@callee_owned () -> @owned @callee_owned (@owned Builtin.Int64) -> @owned BigStruct):
136136
%papply = apply %funcpointer() : $@callee_owned () -> @owned @callee_owned (@owned Builtin.Int64) -> @owned BigStruct
137137
%ret = tuple ()

test/IRGen/comdat.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
// CHECK-1: "$s6comdat1C33_{{.*}}LLCMa" = comdat any
1010
// CHECK-1: "$s6comdat1C33_{{.*}}LLCMn" = comdat any
1111

12-
// Ensure that no foward declaration is emitted
12+
// Ensure that no forward declaration is emitted
1313
// CHECK-2-NOT: "$s6comdat1C33_{{.*}}LLCMa" = comdat any
1414
// CHECK-2-NOT: "$s6comdat1C33_{{.*}}LLCMn" = comdat any

test/IRGen/debug_fragment_merge.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// Checking the below on 32 bit architectures would be cumbersome: each
44
// fragment is 32 bits long, which changes the number of checks as well as the
5-
// arithmethic on the bounds of each fragment.
5+
// arithmetic on the bounds of each fragment.
66
// REQUIRES: CPU=arm64 || CPU=x86_64 || CPU=arm64e
77

88
// CHECK-DAG: llvm.dbg.value{{.*}} metadata ![[VAR:[0-9]+]], metadata !DIExpression(DW_OP_LLVM_fragment, 192, 64){{.*}} !dbg ![[LOC1:[0-9]+]]

test/IRGen/existentials.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ entry(%arg : $*any Constrained<Int>):
124124
}
125125

126126
// Make sure we don't instantiate metadata for constrained existentials. Metadata
127-
// instatiation is not supported on older runtimes.
127+
// instantiation is not supported on older runtimes.
128128

129129
// OPT: define{{.*}} void @constrained_protocol(
130130
// OPT: call {{.*}} @"$s12existentials11Constrained_pSi1TAaBPRts_XPWOc"

test/IRGen/keypaths.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,14 +584,14 @@ public class GC2<T> {
584584
public var y: String
585585
}
586586

587-
sil @class_constrainted : $@convention(thin) <V where V : C> () -> () {
587+
sil @class_constrained : $@convention(thin) <V where V : C> () -> () {
588588
bb0:
589589
%k = keypath $KeyPath<V, String>, <τ_0_0 where τ_0_0 : C> (root $τ_0_0; stored_property #C.y : $String) <V>
590590
%t = tuple ()
591591
return %t : $()
592592
}
593593

594-
sil @generic_class_constrainted : $@convention(thin) <U, V where V : GC2<U>> () -> () {
594+
sil @generic_class_constrained : $@convention(thin) <U, V where V : GC2<U>> () -> () {
595595
bb0:
596596
%k = keypath $KeyPath<V, String>, <τ_0_0, τ_0_1 where τ_0_1 : GC2<τ_0_0>> (root $τ_0_1; stored_property #GC2.y : $String) <U, V>
597597
%t = tuple ()

test/IRGen/opaque_result_type_substitution_2.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ extension Thing {
7171
}
7272
}
7373

74-
struct OutterThing<Content : Thing> : Thing {
74+
struct OuterThing<Content : Thing> : Thing {
7575
let content: Content
7676

7777
init(_ c: Content) {

test/IRGen/typed_throws.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ struct MyError: Error {
122122

123123
// CHECK: define hidden swiftcc { float, i64, float } @"$s12typed_throws8mayThrow1x1ySf_s5Int32VSftSb_yXltAA7MyErrorVYKF"
124124
// CHECK: [[CONVERTED:%.*]] = ptrtoint ptr {{%.*}} to i64
125-
// CEHCK: insertvalue { float, i64, float } undef, i64 [[CONVERTED]], 1
125+
// CHECK: insertvalue { float, i64, float } undef, i64 [[CONVERTED]], 1
126126
// CHECK: }
127127
@inline(never)
128128
func mayThrow(x: Bool, y: AnyObject) throws(MyError) -> (Float, Int32, Float) {

test/IRGen/typelayout_based_value_operation.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ public struct A<T> {
1616

1717
public class C {}
1818

19-
// CHECK-LABEL: define{{.*}} void @testDestroyValueTrival(
19+
// CHECK-LABEL: define{{.*}} void @testDestroyValueTrivial(
2020
// CHECK-NEXT: entry:
2121
// CHECK-NEXT: ret void
2222
// CHECK-NEXT: }
2323

24-
sil @testDestroyValueTrival : $@convention(thin) (@in A<Builtin.Int32>) -> () {
24+
sil @testDestroyValueTrivial : $@convention(thin) (@in A<Builtin.Int32>) -> () {
2525
entry(%arg : $*A<Builtin.Int32>):
2626
destroy_addr %arg : $*A<Builtin.Int32>
2727
%ret = tuple ()

test/IRGen/weak_import_availability.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ public func useConditionallyAvailableMethod(s: ConditionallyAvailableStruct) {
115115

116116
@available(macOS, unavailable)
117117
public func useUnavailableStruct() {
118-
blackHole(UnvailableStruct.self)
118+
blackHole(UnavailableStruct.self)
119119
}
120120

121-
// CHECK-LABEL: declare extern_weak swiftcc %swift.metadata_response @"$s31weak_import_availability_helper16UnvailableStructVMa"(i64)
121+
// CHECK-LABEL: declare extern_weak swiftcc %swift.metadata_response @"$s31weak_import_availability_helper17UnavailableStructVMa"(i64)
122122

123123
@available(macOS, unavailable)
124-
public func useUnavailableMethod(s: UnvailableStruct) {
124+
public func useUnavailableMethod(s: UnavailableStruct) {
125125
s.unavailableMethod()
126126
}
127127

128-
// CHECK-LABEL: declare extern_weak swiftcc void @"$s31weak_import_availability_helper16UnvailableStructV17unavailableMethodyyF"(ptr noalias swiftself)
128+
// CHECK-LABEL: declare extern_weak swiftcc void @"$s31weak_import_availability_helper17UnavailableStructV17unavailableMethodyyF"(ptr noalias swiftself)

0 commit comments

Comments
 (0)