File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 12
12
13
13
import SwiftShims
14
14
15
- internal class _Box < T > {
16
- var value = [ String ] ( )
17
- init ( _ value : [ String ] ) { self . value = value }
15
+ internal class _Box < Wrapped > {
16
+ internal var _value : Wrapped
17
+ internal init ( _ value: Wrapped ) { self . _value = value }
18
18
}
19
19
20
20
/// Command-line arguments for the current process.
@@ -64,13 +64,13 @@ public enum Process {
64
64
65
65
// Check whether argument has been initialized.
66
66
if let arguments = _stdlib_atomicLoadARCRef ( object: argumentsPtr) {
67
- return ( arguments as! _Box < [ String ] > ) . value
67
+ return ( arguments as! _Box < [ String ] > ) . _value
68
68
}
69
69
70
70
let arguments = _Box < [ String ] > ( _computeArguments ( ) )
71
71
_stdlib_atomicInitializeARCRef ( object: argumentsPtr, desired: arguments)
72
72
73
- return arguments. value
73
+ return arguments. _value
74
74
}
75
75
}
76
76
You can’t perform that action at this time.
0 commit comments