Skip to content

Commit 48d6962

Browse files
committed
Remove old hack in transitive address use walker for store_borrow
Now that store_borrows are represented correctly, remove this hack.
1 parent 2b8a397 commit 48d6962

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/SIL/Utils/AddressWalker.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,6 @@ AddressUseKind TransitiveAddressWalker::walk(SILValue projectedAddress) && {
2525
// When we exit, set the result to be invalidated so we can't use this again.
2626
SWIFT_DEFER { didInvalidate = true; };
2727

28-
// If the projectedAddress is dead, it is itself a leaf use. Since we don't
29-
// have an operand for it, simply bail. Dead projectedAddress is unexpected.
30-
//
31-
// TODO: store_borrow is currently an InteriorPointer with no uses, so we end
32-
// up bailing. It should be in a dependence scope instead. It's not clear why
33-
// it produces an address at all.
34-
if (projectedAddress->use_empty()) {
35-
return AddressUseKind::PointerEscape;
36-
}
37-
3828
StackList<Operand *> worklist(projectedAddress->getFunction());
3929
SmallPtrSet<Operand *, 32> visitedOperands;
4030

0 commit comments

Comments
 (0)