mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
DCE inserts end_borrow at phi operands when a guaranteed phi becomes dead. This should be done for reborrows which end the lifetime of the incoming value. The existing check was not accurate and ended up inserting end_borrow for forwarded values as well. Fixes rdar://139283745
34 KiB
34 KiB