Skip to content

Commit 577626c

Browse files
authored
Merge pull request swiftlang#77409 from meg-gupta/reverttransparent
Revert "Make Atomic.deinit @_transparent"
2 parents 34c417d + 20eff53 commit 577626c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/Synchronization/Atomics/Atomic.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ public struct Atomic<Value: AtomicRepresentable>: ~Copyable {
4242
_address.initialize(to: Value.encodeAtomicRepresentation(initialValue))
4343
}
4444

45+
// Deinit's can't be marked @_transparent. Do these things need all of these
46+
// attributes..?
4547
@available(SwiftStdlib 6.0, *)
4648
@_alwaysEmitIntoClient
4749
@inlinable
48-
@_transparent
4950
deinit {
5051
let oldValue = Value.decodeAtomicRepresentation(_address.pointee)
5152
_ = consume oldValue

0 commit comments

Comments
 (0)