File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
SwiftCompilerSources/Sources/Optimizer/DataStructures Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -109,13 +109,6 @@ struct FunctionUses {
109
109
// The use-list head for each function.
110
110
private var uses : [ Function : FirstUse ] = [ : ]
111
111
112
- init ( ) {
113
- // Already start with a reasonable big capacity to reduce the number of
114
- // re-allocations when appending to the data structures.
115
- useStorage. reserveCapacity ( 128 )
116
- uses. reserveCapacity ( 64 )
117
- }
118
-
119
112
/// Returns the use-list of `function`.
120
113
///
121
114
/// Note that `collect` must be called before `getUses` can be used.
@@ -125,7 +118,12 @@ struct FunctionUses {
125
118
126
119
/// Collects all uses of all function in the module.
127
120
mutating func collect( context: ModulePassContext ) {
128
-
121
+
122
+ // Already start with a reasonable big capacity to reduce the number of
123
+ // re-allocations when appending to the data structures.
124
+ useStorage. reserveCapacity ( 128 )
125
+ uses. reserveCapacity ( 64 )
126
+
129
127
// Mark all functions, which are referenced from tables, to have "unknown" uses.
130
128
131
129
for vTable in context. vTables {
You can’t perform that action at this time.
0 commit comments