Skip to content

Commit 75315b4

Browse files
authored
Merge pull request #27312 from gottesmm/pr-7a1cedad01d914933d33a3f8d7335f0abc06adc9
2 parents c3d304c + a4f44fe commit 75315b4

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

lib/SIL/SILOwnershipVerifier.cpp

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -144,37 +144,6 @@ class SILValueOwnershipChecker {
144144
return result.getValue();
145145
}
146146

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-
178147
private:
179148
bool checkUses();
180149
bool gatherUsers(SmallVectorImpl<BranchPropagatedUser> &lifetimeEndingUsers,

0 commit comments

Comments
 (0)