Skip to content

Commit 1745c98

Browse files
committed
[cxx-interop] Make two overlay functions inlinable
1 parent d0164dd commit 1745c98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/Cxx/CxxSequence.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@ extension UnsafeMutablePointer: UnsafeCxxInputIterator {}
4040
extension Optional: UnsafeCxxInputIterator where Wrapped: UnsafeCxxInputIterator {
4141
public typealias Pointee = Wrapped.Pointee
4242

43+
@inlinable
4344
public var pointee: Pointee {
4445
if let value = self {
4546
return value.pointee
4647
}
4748
fatalError("Could not dereference nullptr")
4849
}
4950

51+
@inlinable
5052
public func successor() -> Self {
5153
if let value = self {
5254
return value.successor()

0 commit comments

Comments
 (0)