We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 694b153 + 381cae6 commit ab37099Copy full SHA for ab37099
stdlib/public/core/UnsafePointer.swift
@@ -580,7 +580,8 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer {
580
/// block. The memory must not be initialized or `Pointee` must be a trivial type.
581
@inlinable
582
public func deallocate() {
583
- Builtin.deallocRaw(_rawValue, (-1)._builtinWordValue, (-1)._builtinWordValue)
+ Builtin.deallocRaw(_rawValue, (-1)._builtinWordValue,
584
+ Builtin.alignof(Pointee.self))
585
}
586
587
/// Accesses the instance referenced by this pointer.
0 commit comments