mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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)
57 KiB
57 KiB