swift
75c36d8e - [CanOSSALifetime] Record "unreachable" insts.

Commit
2 years ago
[CanOSSALifetime] Record "unreachable" insts. OSSALifetimeCompletion needs to insert not at unreachable instructions that appear after the non-lifetime-ending boundary of a value but rather at the terminators of the availability boundary of the value within that region. Once it does so, it will no longer be sufficient to check whether the insertion point is an unreachable because such terminators may be another terminator that appears on the availability boundary. Prepare for that by recording the instructions that were found and checking whether the destroy insertion point is such an instruction before bailing rather than specifically checking for `unreachable`.
Author
Committer
Parents
Loading