mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add a fake use for dead-end blocks. This allows gatherKnownLifetimeUses to be used for local liveness by considering an "unreachable" instruction to generate liveness. This is important when liveness is used as a boundary within which access scopes may be extended. Otherwise, we are unable to extend access scopes into dead-end blocks. Fixes rdar://154406790 (Lifetime-dependent variable 'X' escapes its scope but only if actor/class is final)
25 KiB
25 KiB