Skip to content

Commit 158c7f4

Browse files
committed
[Stdlib] Mark CVaListPointer as @unsafe.
rdar://135604375
1 parent ada0ceb commit 158c7f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/core/CTypes.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ extension UInt {
284284
/// A wrapper around a C `va_list` pointer.
285285
#if arch(arm64) && !(os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(visionOS) || os(Windows))
286286
@frozen
287+
@unsafe
287288
public struct CVaListPointer {
288289
@usableFromInline // unsafe-performance
289290
internal var _value: (__stack: UnsafeMutablePointer<Int>?,
@@ -317,6 +318,7 @@ extension CVaListPointer: CustomDebugStringConvertible {
317318
#else
318319

319320
@frozen
321+
@unsafe
320322
public struct CVaListPointer {
321323
@usableFromInline // unsafe-performance
322324
internal var _value: UnsafeMutableRawPointer

0 commit comments

Comments
 (0)