Skip to content

Commit e5a35f9

Browse files
Merge pull request #60560 from aschwaighofer/always_inline_sprinkle_range_index_after
stdlib: Sprinkle an __always inline onto Range.index(after:)
2 parents 85ea21c + 48b4d3a commit e5a35f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/core/Range.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ where Bound: Strideable, Bound.Stride: SignedInteger
229229
public var endIndex: Index { return upperBound }
230230

231231
@inlinable
232+
@inline(__always)
232233
public func index(after i: Index) -> Index {
233234
_failEarlyRangeCheck(i, bounds: startIndex..<endIndex)
234235

0 commit comments

Comments
 (0)