@@ -136,7 +136,7 @@ func testDictionaryDowncastConditional(_ dict: Dictionary<NSObject, AnyObject>)
136
136
// CHECK: bb0([[DICT:%[0-9]+]] : $Dictionary<NSObject, AnyObject>)
137
137
func testDictionaryDowncastBridgedVConditional( _ dict: Dictionary < NSObject , AnyObject > )
138
138
-> Dictionary < BridgedObjC , BridgedSwift > ? {
139
- // CHECK: [[BRIDGE_FN:%[0-9]+]] = function_ref @_TFs42_dictionaryBridgeFromObjectiveCConditional
139
+ // CHECK: [[BRIDGE_FN:%[0-9]+]] = function_ref @_TFs30_dictionaryDownCastConditional
140
140
// CHECK-NEXT: apply [[BRIDGE_FN]]<NSObject, AnyObject, BridgedObjC, BridgedSwift>([[DICT]]) : $@convention(thin) <τ_0_0, τ_0_1, τ_0_2, τ_0_3 where τ_0_0 : Hashable, τ_0_2 : Hashable> (@owned Dictionary<τ_0_0, τ_0_1>) -> @owned Optional<Dictionary<τ_0_2, τ_0_3>>{{.*}} // user: %6
141
141
return dict as? Dictionary < BridgedObjC , BridgedSwift >
142
142
}
@@ -145,7 +145,7 @@ func testDictionaryDowncastBridgedVConditional(_ dict: Dictionary<NSObject, AnyO
145
145
// CHECK: bb0([[DICT:%[0-9]+]] : $Dictionary<NSObject, AnyObject>)
146
146
func testDictionaryDowncastBridgedKConditional( _ dict: Dictionary < NSObject , AnyObject > )
147
147
-> Dictionary < BridgedSwift , BridgedObjC > ? {
148
- // CHECK: [[BRIDGE_FN:%[0-9]+]] = function_ref @_TFs42_dictionaryBridgeFromObjectiveCConditional
148
+ // CHECK: [[BRIDGE_FN:%[0-9]+]] = function_ref @_TFs30_dictionaryDownCastConditional
149
149
// CHECK-NEXT: apply [[BRIDGE_FN]]<NSObject, AnyObject, BridgedSwift, BridgedObjC>([[DICT]]) : $@convention(thin) <τ_0_0, τ_0_1, τ_0_2, τ_0_3 where τ_0_0 : Hashable, τ_0_2 : Hashable> (@owned Dictionary<τ_0_0, τ_0_1>) -> @owned Optional<Dictionary<τ_0_2, τ_0_3>>
150
150
return dict as? Dictionary < BridgedSwift , BridgedObjC >
151
151
}
@@ -154,7 +154,7 @@ func testDictionaryDowncastBridgedKConditional(_ dict: Dictionary<NSObject, AnyO
154
154
// CHECK: bb0([[DICT:%[0-9]+]] : $Dictionary<NSObject, AnyObject>)
155
155
func testDictionaryDowncastBridgedKV( _ dict: Dictionary < NSObject , AnyObject > )
156
156
-> Dictionary < BridgedSwift , BridgedSwift > {
157
- // CHECK: [[BRIDGE_FN:%[0-9]+]] = function_ref @_TFs31_dictionaryBridgeFromObjectiveC
157
+ // CHECK: [[BRIDGE_FN:%[0-9]+]] = function_ref @_TFs19_dictionaryDownCast
158
158
// CHECK-NEXT: apply [[BRIDGE_FN]]<NSObject, AnyObject, BridgedSwift, BridgedSwift>([[DICT]]) : $@convention(thin) <τ_0_0, τ_0_1, τ_0_2, τ_0_3 where τ_0_0 : Hashable, τ_0_2 : Hashable> (@owned Dictionary<τ_0_0, τ_0_1>) -> @owned Dictionary<τ_0_2, τ_0_3>
159
159
return dict as! Dictionary < BridgedSwift , BridgedSwift >
160
160
}
@@ -163,7 +163,7 @@ func testDictionaryDowncastBridgedKV(_ dict: Dictionary<NSObject, AnyObject>)
163
163
// CHECK: bb0([[DICT:%[0-9]+]] : $Dictionary<NSObject, AnyObject>)
164
164
func testDictionaryDowncastBridgedKVConditional( _ dict: Dictionary < NSObject , AnyObject > )
165
165
-> Dictionary < BridgedSwift , BridgedSwift > ? {
166
- // CHECK: [[BRIDGE_FN:%[0-9]+]] = function_ref @_TFs42_dictionaryBridgeFromObjectiveCConditional
166
+ // CHECK: [[BRIDGE_FN:%[0-9]+]] = function_ref @_TFs30_dictionaryDownCastConditional
167
167
// CHECK-NEXT: apply [[BRIDGE_FN]]<NSObject, AnyObject, BridgedSwift, BridgedSwift>([[DICT]]) : $@convention(thin) <τ_0_0, τ_0_1, τ_0_2, τ_0_3 where τ_0_0 : Hashable, τ_0_2 : Hashable> (@owned Dictionary<τ_0_0, τ_0_1>) -> @owned Optional<Dictionary<τ_0_2, τ_0_3>>
168
168
return dict as? Dictionary < BridgedSwift , BridgedSwift >
169
169
}
@@ -198,7 +198,7 @@ func testSetDowncastConditional(_ dict: Set<NSObject>)
198
198
// CHECK: bb0([[SET:%[0-9]+]] : $Set<NSObject>)
199
199
func testSetDowncastBridged( _ dict: Set < NSObject > )
200
200
-> Set < BridgedSwift > {
201
- // CHECK: [[DOWNCAST_FN:%[0-9]+]] = function_ref @_TFs24_setBridgeFromObjectiveC
201
+ // CHECK: [[DOWNCAST_FN:%[0-9]+]] = function_ref @_TFs12_setDownCast
202
202
// CHECK-NEXT: apply [[DOWNCAST_FN]]<NSObject, BridgedSwift>([[SET]]) : $@convention(thin) <τ_0_0, τ_0_1 where τ_0_0 : Hashable, τ_0_1 : Hashable> (@owned Set<τ_0_0>) -> @owned Set<τ_0_1>
203
203
return dict as! Set < BridgedSwift >
204
204
}
@@ -208,6 +208,6 @@ func testSetDowncastBridged(_ dict: Set<NSObject>)
208
208
func testSetDowncastBridgedConditional( _ dict: Set < NSObject > )
209
209
-> Set < BridgedSwift > ? {
210
210
return dict as? Set < BridgedSwift >
211
- // CHECK: [[DOWNCAST_FN:%[0-9]+]] = function_ref @_TFs35_setBridgeFromObjectiveCConditional
211
+ // CHECK: [[DOWNCAST_FN:%[0-9]+]] = function_ref @_TFs23_setDownCastConditional
212
212
// CHECK: apply [[DOWNCAST_FN]]<NSObject, BridgedSwift>([[SET]]) : $@convention(thin) <τ_0_0, τ_0_1 where τ_0_0 : Hashable, τ_0_1 : Hashable> (@owned Set<τ_0_0>) -> @owned Optional<Set<τ_0_1>>
213
213
}
0 commit comments