Skip to content

Commit 40f5f29

Browse files
committed
SILGen: Fix CHECK spelling. Some of these needed adjustments to fix the assertions made by the CHECK lines.
1 parent 9053f0e commit 40f5f29

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

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)