Skip to content

Commit 7de122e

Browse files
committed
---
yaml --- r: 348636 b: refs/heads/master c: e439c0f h: refs/heads/master
1 parent 62eb9af commit 7de122e

File tree

2 files changed

+1
-32
lines changed

2 files changed

+1
-32
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 1292e720ab2fe04eb343b3dfaa45ff4344f2f036
2+
refs/heads/master: e439c0fdbea0431da9bfc2543a4282147669b5da
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/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)