Skip to content

Commit 0cf20db

Browse files
authored
Merge pull request #42507 from tshortli/fix-misspelled-check-lines
Fix misspelled `CHECK` lines
2 parents 3316cf0 + 40f5f29 commit 0cf20db

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

test/AutoDiff/IRGen/runtime.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ func test_context_builtins() {
2020
// CHECK-LABEL: define{{.*}}@test_context_builtins()
2121
// CHECK: entry:
2222
// CHECK: [[CTX:%.*]] = call swiftcc %swift.refcounted* @swift_autoDiffCreateLinearMapContext({{i[0-9]+}} {{.*}})
23-
// CEHCK: call swiftcc i8* @swift_autoDiffProjectTopLevelSubcontext(%swift.refcounted* [[CTX]])
23+
// CHECK: call swiftcc i8* @swift_autoDiffProjectTopLevelSubcontext(%swift.refcounted* [[CTX]])
2424
// CHECK: [[BUF:%.*]] = call swiftcc i8* @swift_autoDiffAllocateSubcontext(%swift.refcounted* [[CTX]], {{i[0-9]+}} {{.*}})

test/Interop/Cxx/class/type-classification-non-trivial-silgen.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public func testStructWithSubobjectDestructor() {
3131
let d = StructWithSubobjectDestructor()
3232
}
3333

34-
// CHECK-LABLE: sil [ossa] @$s4main37testStructWithCopyConstructorAndValueSbyF
34+
// CHECK-LABEL: sil [ossa] @$s4main37testStructWithCopyConstructorAndValueSbyF
3535
// CHECK: [[AS:%.*]] = alloc_stack [lexical] $StructWithCopyConstructorAndValue
3636
// CHECK: [[FN:%.*]] = function_ref @{{_ZN33StructWithCopyConstructorAndValueC1Ei|\?\?0StructWithCopyConstructorAndValue@@QEAA@H@Z}} : $@convention(c) (Int32) -> @out StructWithCopyConstructorAndValue
3737
// CHECK: apply [[FN]]([[AS]], %{{.*}}) : $@convention(c) (Int32) -> @out StructWithCopyConstructorAndValue
@@ -44,7 +44,7 @@ public func testStructWithSubobjectDestructor() {
4444
// CHECK: [[OUT:%.*]] = apply [[CMP_FN]]([[OBJ_VAL]], [[INT_42]], %{{.*}}) : $@convention(method) (Int32, Int32, @thin Int32.Type) -> Bool
4545
// CHECK: destroy_addr [[AS]] : $*StructWithCopyConstructorAndValue
4646
// CHECK: return [[OUT]] : $Bool
47-
// CHECK-LABLE: end sil function '$s4main37testStructWithCopyConstructorAndValueSbyF'
47+
// CHECK-LABEL: end sil function '$s4main37testStructWithCopyConstructorAndValueSbyF'
4848

4949
// CHECK-LABEL: sil [clang StructWithCopyConstructorAndValue.init] @{{_ZN33StructWithCopyConstructorAndValueC1Ei|\?\?0StructWithCopyConstructorAndValue@@QEAA@H@Z}} : $@convention(c) (Int32) -> @out StructWithCopyConstructorAndValue
5050
public func testStructWithCopyConstructorAndValue() -> Bool {

test/SILGen/casts.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func is_archetype<T : B>(b: B, _: T) -> Bool {
6060
// CHECK: integer_literal {{.*}} -1
6161
// CHECK: destroy_value [[CASTED_ARG]]
6262
// CHECK: [[NO]]([[ORIGINAL_VALUE:%.*]] : @owned $B):
63-
// CHCEK: destroy_value [[CASTED_ARG]]
63+
// CHECK: destroy_value [[ORIGINAL_VALUE]]
6464
// CHECK: integer_literal {{.*}} 0
6565
return b is T
6666
}

test/SILGen/closures.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func small_closure_capture(_ x: Int) -> Int {
206206
func small_closure_capture_with_argument(_ x: Int) -> (_ y: Int) -> Int {
207207
var x = x
208208
// CHECK: [[XBOX:%[0-9]+]] = alloc_box ${ var Int }
209-
// CHEKC: [[XLIFETIME:%[0-9]+]] = begin_borrow [lexical] [[XBOX]]
209+
// CHECK: [[XLIFETIME:%[0-9]+]] = begin_borrow [lexical] [[XBOX]]
210210

211211
return { x + $0 }
212212
// -- func expression

test/SILGen/objc_imported_generic.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ public func genericSubscriptOnAnyObject(o: AnyObject, b: Bool) -> AnyObject? {
3838
}
3939

4040
// CHECK-LABEL: sil [ossa] @$s21objc_imported_generic0C20SubscriptOnAnyObject1o1byXlSgyXl_SbtF
41-
// CHECK: bb0([[ANY:%.*]]
42-
// CHCEK: [[OPENED_ANY:%.*]] = open_existential_ref [[ANY]]
41+
// CHECK: bb0([[ANY:%.*]] : @guaranteed $AnyObject, [[BOOL:%.*]] : $Bool):
42+
// CHECK: [[OPENED_ANY:%.*]] = open_existential_ref [[ANY]] : $AnyObject to $@opened([[TAG:.*]]) AnyObject
4343
// CHECK: [[OPENED_ANY_COPY:%.*]] = copy_value [[OPENED_ANY]]
44-
// CHECK: dynamic_method_br [[OPENED_ANY_COPY]] : $@opened([[TAG:.*]]) AnyObject, #GenericClass.subscript!getter.foreign, bb1
44+
// CHECK: dynamic_method_br [[OPENED_ANY_COPY]] : $@opened([[TAG]]) AnyObject, #GenericClass.subscript!getter.foreign, bb1
4545
// CHECK: bb1({{%.*}} : $@convention(objc_method) (UInt16, @opened([[TAG]]) AnyObject) -> @autoreleased AnyObject):
4646
// CHECK: } // end sil function '$s21objc_imported_generic0C20SubscriptOnAnyObject1o1byXlSgyXl_SbtF'
4747

test/SILGen/versioned_attribute.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
// CHECK-LABEL: sil [ossa] @$s19versioned_attribute5HorseCfd : $@convention(method) (@guaranteed Horse) -> @owned Builtin.NativeObject
2323
// CHECK-LABEL: sil [ossa] @$s19versioned_attribute5HorseCfD : $@convention(method) (@owned Horse) -> ()
2424

25-
// CHEKC-LABEL: sil [ossa] @$s19versioned_attribute9GiftHorseCfd : $@convention(method) (@guaranteed GiftHorse) -> @owned Builtin.NativeObject
25+
// CHECK-LABEL: sil [ossa] @$s19versioned_attribute9GiftHorseCfd : $@convention(method) (@guaranteed GiftHorse) -> @owned Builtin.NativeObject
2626
// CHECK-LABEL: sil [ossa] @$s19versioned_attribute9GiftHorseCfD : $@convention(method) (@owned GiftHorse) -> ()

0 commit comments

Comments
 (0)