@@ -5,9 +5,9 @@ sil_stage canonical
5
5
import Builtin
6
6
import Swift
7
7
import SwiftShims
8
- import Foo
8
+ import CXXTypesWithUserProvidedDestructor
9
9
10
- // Make sure we don't try to create a struct here. Foo is not loadable, even
10
+ // Make sure we don't try to create a struct here. HasUserProvidedDestructor is not loadable, even
11
11
// though it's only property is.
12
12
// CHECK-LABEL: @test_foo
13
13
// CHECK: bb0
@@ -16,16 +16,16 @@ import Foo
16
16
// CHECK-NEXT: tuple
17
17
// CHECK-NEXT: return
18
18
// CHECK-LABEL: end sil function 'test_foo'
19
- sil shared [transparent] [serializable] [ossa] @test_foo : $@convention(method) (Int32, @thin Foo .Type) -> @out Foo {
20
- bb0(%0 : $*Foo , %1 : $Int32, %2 : $@thin Foo .Type):
21
- %3 = struct_element_addr %0 : $*Foo , #Foo .x
19
+ sil shared [transparent] [serializable] [ossa] @test_foo : $@convention(method) (Int32, @thin HasUserProvidedDestructor .Type) -> @out HasUserProvidedDestructor {
20
+ bb0(%0 : $*HasUserProvidedDestructor , %1 : $Int32, %2 : $@thin HasUserProvidedDestructor .Type):
21
+ %3 = struct_element_addr %0 : $*HasUserProvidedDestructor , #HasUserProvidedDestructor .x
22
22
store %1 to [trivial] %3 : $*Int32
23
23
%5 = tuple ()
24
24
return %5 : $()
25
25
}
26
26
27
27
// Make sure we create a struct for the first (loadable) type but not the second
28
- // type (Bar ).
28
+ // type (HasMemberWithUserProvidedDestructor ).
29
29
// CHECK-LABEL: @test_bar
30
30
// CHECK: bb0
31
31
// CHECK-NEXT: [[E:%.*]] = struct_element_addr
@@ -34,9 +34,9 @@ bb0(%0 : $*Foo, %1 : $Int32, %2 : $@thin Foo.Type):
34
34
// CHECK-NEXT: tuple
35
35
// CHECK-NEXT: return
36
36
// CHECK-LABEL: end sil function 'test_bar'
37
- sil shared [transparent] [serializable] [ossa] @test_bar : $@convention(method) (Int32, @thin Bar .Type) -> @out Bar {
38
- bb0(%0 : $*Bar , %1 : $Int32, %2 : $@thin Bar .Type):
39
- %3 = struct_element_addr %0 : $*Bar , #Bar .y
37
+ sil shared [transparent] [serializable] [ossa] @test_bar : $@convention(method) (Int32, @thin HasMemberWithUserProvidedDestructor .Type) -> @out HasMemberWithUserProvidedDestructor {
38
+ bb0(%0 : $*HasMemberWithUserProvidedDestructor , %1 : $Int32, %2 : $@thin HasMemberWithUserProvidedDestructor .Type):
39
+ %3 = struct_element_addr %0 : $*HasMemberWithUserProvidedDestructor , #HasMemberWithUserProvidedDestructor .y
40
40
%3a = struct_element_addr %3 : $*Loadable, #Loadable.x
41
41
store %1 to [trivial] %3a : $*Int32
42
42
%5 = tuple ()
0 commit comments