Skip to content

Commit d398b56

Browse files
committed
IRGen: Fix boxed_existential.sil test when stdlib is built with resilience
The ErrorProtocol conformance is obtained by calling an accessor function, rather than direct reference.
1 parent 9ce9784 commit d398b56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/IRGen/boxed_existential.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct SomeError: ErrorProtocol {
3636
// CHECK-LABEL: define{{( protected)?}} %swift.error* @alloc_boxed_existential_concrete
3737
sil @alloc_boxed_existential_concrete : $@convention(thin) (@owned SomeError) -> @owned ErrorProtocol {
3838
entry(%x : $SomeError):
39-
// CHECK: [[BOX_PAIR:%.*]] = call { %swift.error*, %swift.opaque* } @swift_allocError(%swift.type* {{.*}} @_TMfV17boxed_existential9SomeError, {{.*}}, i8** @_TWPV17boxed_existential9SomeErrors13ErrorProtocolS_, %swift.opaque* null, i1 false)
39+
// CHECK: [[BOX_PAIR:%.*]] = call { %swift.error*, %swift.opaque* } @swift_allocError(%swift.type* {{.*}} @_TMfV17boxed_existential9SomeError, {{.*}}, i8** {{%.*|@_TWPV17boxed_existential9SomeErrors13ErrorProtocolS_}}, %swift.opaque* null, i1 false)
4040
// CHECK: [[BOX:%.*]] = extractvalue { %swift.error*, %swift.opaque* } [[BOX_PAIR]], 0
4141
// CHECK: [[OPAQUE_ADDR:%.*]] = extractvalue { %swift.error*, %swift.opaque* } [[BOX_PAIR]], 1
4242
// CHECK: [[ADDR:%.*]] = bitcast %swift.opaque* [[OPAQUE_ADDR]] to %V17boxed_existential9SomeError*

0 commit comments

Comments
 (0)