File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 9
9
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
10
//
11
11
12
- /// This type is used as a result of the _checkSubscript call to associate the
12
+ /// This type is used as a result of the ` _checkSubscript` call to associate the
13
13
/// call with the array access call it guards.
14
+ ///
15
+ /// In order for the optimizer see that a call to `_checkSubscript` is semantically
16
+ /// associated with an array access, a value of this type is returned and later passed
17
+ /// to the accessing function. For example, a typical call to `_getElement` looks like
18
+ /// let token = _checkSubscript(index, ...)
19
+ /// return _getElement(index, ... , matchingSubscriptCheck: token)
14
20
@frozen
15
21
public struct _DependenceToken {
16
22
@inlinable
You can’t perform that action at this time.
0 commit comments