mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Generalize the AccessUseDefChainCloner in MemAccessUtils. It was always meant to work this way, just needed a client. Add a new API AccessUseDefChainCloner::canCloneUseDefChain(). Add a bailout for begin_borrow and mark_dependence. Those projections may appear on an access path, but they can't be individually cloned without compensating. Delete InteriorPointerAddressRebaseUseDefChainCloner. Add a check in OwnershipRAUWHelper for canCloneUseDefChain. Add test cases for begin_borrow and mark_dependence.
54 KiB
54 KiB