@@ -7,7 +7,7 @@ import Builtin
7
7
public struct Cell < T: ~ Copyable> : ~ Copyable {
8
8
// CHECK-LABEL: sil {{.*}} @$s4CellAAVAARiczrlE7addressSpyxGvg : $@convention(method) <T where T : ~Copyable> (@in_guaranteed Cell<T>) -> UnsafeMutablePointer<T> {
9
9
// CHECK: bb0([[SELF:%.*]] : $*Cell<T>):
10
- // CHECK: [[RAW_LAYOUT_ADDR:%.*]] = raw_layout_address_to_pointer [[SELF]] : $*Cell<T> to $Builtin.RawPointer
10
+ // CHECK: [[RAW_LAYOUT_ADDR:%.*]] = builtin "addressOfRawLayout"<Cell<T>>( [[SELF]] : $*Cell<T>) : $Builtin.RawPointer
11
11
// CHECK-NEXT: [[POINTER:%.*]] = struct $UnsafeMutablePointer<T> ([[RAW_LAYOUT_ADDR]] : $Builtin.RawPointer)
12
12
// CHECK-NEXT: return [[POINTER]] : $UnsafeMutablePointer<T>
13
13
// CHECK-LABEL: } // end sil function '$s4CellAAVAARiczrlE7addressSpyxGvg'
@@ -17,9 +17,9 @@ public struct Cell<T: ~Copyable>: ~Copyable {
17
17
}
18
18
19
19
// CHECK-LABEL: sil {{.*}} @$s4CellAAVAARiczrlEyAByxGxcfC : $@convention(method) <T where T : ~Copyable> (@in T, @thin Cell<T>.Type) -> @out Cell<T> {
20
- // CHECK: bb0([[SELF: %.*]] : $*Cell<T>, [[VALUE:%.*]] : $*T, {{%.*}} : $@thin Cell<T>.Type):
21
- // CHECK-NEXT : {{%.*}} = builtin "zeroInitializer"<Cell<T>>([[SELF]] : $*Cell<T>) : $()
22
- // CHECK-NEXT: [[RAW_LAYOUT_ADDR:%.*]] = raw_layout_address_to_pointer [[SELF]] : $*Cell<T> to $Builtin.RawPointer
20
+ // CHECK: bb0({{ %.*}} : $*Cell<T>, [[VALUE:%.*]] : $*T, {{%.*}} : $@thin Cell<T>.Type):
21
+ // CHECK: {{%.*}} = builtin "zeroInitializer"<Cell<T>>([[SELF:%.* ]] : $*Cell<T>) : $()
22
+ // CHECK-NEXT: [[RAW_LAYOUT_ADDR:%.*]] = builtin "addressOfRawLayout"<Cell<T>>( [[SELF]] : $*Cell<T>) : $Builtin.RawPointer
23
23
// CHECK-NEXT: [[POINTER:%.*]] = struct $UnsafeMutablePointer<T> ([[RAW_LAYOUT_ADDR]] : $Builtin.RawPointer)
24
24
// Calling 'UnsafeMutablePointer<T>.initialize(to:)'
25
25
// CHECK: {{%.*}} = apply {{%.*}}<T>([[VALUE]], [[POINTER]])
0 commit comments