Skip to content

Commit 13ad35a

Browse files
committed
Only test bridge object pre-specialization on Darwin
Bridge objects don't exist on other platforms
1 parent 7048e84 commit 13ad35a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/SILOptimizer/pre_specialize_layouts.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ internal func testEmitIntoClient<T>(t: T) {
8888
// OPT: apply [[F7]]([[A2]]) : $@convention(thin) (@guaranteed AnyObject) -> ()
8989
// OPT: [[A3:%.*]] = alloc_stack $OveralignedReferenceWrapperStruct
9090
// OPT: apply {{%.*}}<OveralignedReferenceWrapperStruct>([[A3]])
91-
// OPT: [[F8:%.*]] = function_ref @$s30pre_specialized_module_layouts20publicPrespecializedyyxlFBb_Ts5 : $@convention(thin) (@guaranteed Builtin.BridgeObject) -> ()
92-
// OPT: [[A4:%.*]] = unchecked_bitwise_cast [[P3]] : $Array<Int> to $Builtin.BridgeObject
93-
// OPT: apply [[F8]]([[A4]]) : $@convention(thin) (@guaranteed Builtin.BridgeObject) -> ()
91+
// OPT-macosx: [[F8:%.*]] = function_ref @$s30pre_specialized_module_layouts20publicPrespecializedyyxlFBb_Ts5 : $@convention(thin) (@guaranteed Builtin.BridgeObject) -> ()
92+
// OPT-macosx: [[A4:%.*]] = unchecked_bitwise_cast [[P3]] : $Array<Int> to $Builtin.BridgeObject
93+
// OPT-macosx: apply [[F8]]([[A4]]) : $@convention(thin) (@guaranteed Builtin.BridgeObject) -> ()
9494
// OPT: [[F3:%.*]] = function_ref @$s30pre_specialized_module_layouts36internalEmitIntoClientPrespecializedyyxlFSi_Ts5 : $@convention(thin) (Int) -> ()
9595
// OPT: apply [[F3]]
9696
// OPT: [[F4:%.*]] = function_ref @$s30pre_specialized_module_layouts36internalEmitIntoClientPrespecializedyyxlFSd_Ts5 : $@convention(thin) (Double) -> ()

0 commit comments

Comments
 (0)