File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -144,37 +144,6 @@ class SILValueOwnershipChecker {
144
144
return result.getValue ();
145
145
}
146
146
147
- using user_array_transform =
148
- std::function<SILInstruction *(BranchPropagatedUser)>;
149
- using user_array = TransformArrayRef<user_array_transform>;
150
-
151
- // / A function that returns a range of lifetime ending users found for the
152
- // / given value.
153
- user_array getLifetimeEndingUsers () const {
154
- assert (result.hasValue () && " Can not call until check() is called" );
155
- assert (result.getValue () && " Can not call if check() returned false" );
156
-
157
- user_array_transform transform (
158
- [](BranchPropagatedUser user) -> SILInstruction * {
159
- return user.getInst ();
160
- });
161
- return user_array (ArrayRef<BranchPropagatedUser>(lifetimeEndingUsers),
162
- transform);
163
- }
164
-
165
- // / A function that returns a range of regular (i.e. "non lifetime ending")
166
- // / users found for the given value.
167
- user_array getRegularUsers () const {
168
- assert (result.hasValue () && " Can not call until check() is called" );
169
- assert (result.getValue () && " Can not call if check() returned false" );
170
-
171
- user_array_transform transform (
172
- [](BranchPropagatedUser user) -> SILInstruction * {
173
- return user.getInst ();
174
- });
175
- return user_array (ArrayRef<BranchPropagatedUser>(regularUsers), transform);
176
- }
177
-
178
147
private:
179
148
bool checkUses ();
180
149
bool gatherUsers (SmallVectorImpl<BranchPropagatedUser> &lifetimeEndingUsers,
You can’t perform that action at this time.
0 commit comments