mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The previous implementation just checked that a value's only uses besides the begin_borrow were destroys. That's insufficient to say the value is destroyed after the borrow (i.e. that all its destroys are dominated by the borrow). Add the relevant dominance check. Fixes a compiler crash rdar://119873930
8.6 KiB
8.6 KiB