swift
16697882 - SimplifyBeginBorrow: fix `isDestroyed(after:)`

Commit
1 year ago
SimplifyBeginBorrow: fix `isDestroyed(after:)` 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
Author
Parents
Loading