@@ -13,7 +13,7 @@ func testInt(_: Int)
13
13
14
14
// CHECK-LABEL: sil {{.*}} @localLoad {{.*}} {
15
15
// CHECK: [[ATOMIC:%.*]] = alloc_stack [lexical] [var_decl] $Atomic<Int>
16
- // CHECK: [[ATOMIC_PTR:%.*]] = address_to_pointer [[ATOMIC]]
16
+ // CHECK: [[ATOMIC_PTR:%.*]] = builtin "addressOfRawLayout"<Atomic<Int>>( [[ATOMIC]] : $*Atomic<Int>)
17
17
// CHECK: builtin "atomicload_monotonic_Int[[PTR_SIZE]]"([[ATOMIC_PTR]] : $Builtin.RawPointer)
18
18
// CHECK: dealloc_stack [[ATOMIC]] : $*Atomic<Int>
19
19
// CHECK-LABEL: } // end sil function 'localLoad'
@@ -25,7 +25,7 @@ func localLoad() -> Int {
25
25
26
26
// CHECK-LABEL: sil {{.*}} @localStore {{.*}} {
27
27
// CHECK: [[ATOMIC:%.*]] = alloc_stack [lexical] [var_decl] $Atomic<Int>
28
- // CHECK: [[ATOMIC_PTR:%.*]] = address_to_pointer [[ATOMIC]]
28
+ // CHECK: [[ATOMIC_PTR:%.*]] = builtin "addressOfRawLayout"<Atomic<Int>>( [[ATOMIC]] : $*Atomic<Int>)
29
29
// CHECK: builtin "atomicstore_release_Int[[PTR_SIZE]]"([[ATOMIC_PTR]] : $Builtin.RawPointer
30
30
// CHECK: dealloc_stack [[ATOMIC]] : $*Atomic<Int>
31
31
// CHECK-LABEL: } // end sil function 'localStore'
@@ -37,7 +37,7 @@ func localStore() {
37
37
38
38
// CHECK-LABEL: sil {{.*}} @localExchange {{.*}} {
39
39
// CHECK: [[ATOMIC:%.*]] = alloc_stack [lexical] [var_decl] $Atomic<Int>
40
- // CHECK: [[ATOMIC_PTR:%.*]] = address_to_pointer [[ATOMIC]]
40
+ // CHECK: [[ATOMIC_PTR:%.*]] = builtin "addressOfRawLayout"<Atomic<Int>>( [[ATOMIC]] : $*Atomic<Int>)
41
41
// CHECK: builtin "atomicrmw_xchg_acquire_Int[[PTR_SIZE]]"([[ATOMIC_PTR]] : $Builtin.RawPointer
42
42
// CHECK: dealloc_stack [[ATOMIC]] : $*Atomic<Int>
43
43
// CHECK-LABEL: } // end sil function 'localExchange'
@@ -49,7 +49,7 @@ func localExchange() -> Int {
49
49
50
50
// CHECK-LABEL: sil {{.*}} @localCompareExchange {{.*}} {
51
51
// CHECK: [[ATOMIC:%.*]] = alloc_stack [lexical] [var_decl] $Atomic<Int>
52
- // CHECK: [[ATOMIC_PTR:%.*]] = address_to_pointer [[ATOMIC]]
52
+ // CHECK: [[ATOMIC_PTR:%.*]] = builtin "addressOfRawLayout"<Atomic<Int>>( [[ATOMIC]] : $*Atomic<Int>)
53
53
// CHECK: builtin "cmpxchg_seqcst_seqcst_Int[[PTR_SIZE]]"([[ATOMIC_PTR]] : $Builtin.RawPointer
54
54
// CHECK: dealloc_stack [[ATOMIC]] : $*Atomic<Int>
55
55
// CHECK-LABEL: } // end sil function 'localCompareExchange'
0 commit comments