Skip to content

Commit 19b8bed

Browse files
committed
Change the builtin used to get the address for Atomic
1 parent bccc22f commit 19b8bed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Synchronization/Atomics/Atomic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public struct Atomic<Value: AtomicRepresentable>: ~Copyable {
2929
@_alwaysEmitIntoClient
3030
@_transparent
3131
var _rawAddress: Builtin.RawPointer {
32-
Builtin.unprotectedAddressOfBorrow(self)
32+
Builtin.addressOfRawLayout(self)
3333
}
3434

3535
/// Initializes a value of this atomic with the given initial value.

0 commit comments

Comments
 (0)