You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SILGen]: Emit ignored loads of uninhabited lvalues to address DI edge cases
Previously we would crash on this pattern:
```swift
let x: Never
switch x {}
```
This appears to be due to the fact that the switch over the uninhabited
value did not result in any instructions DI considers a use being
produced. This change adds specially handling of this case so that we
now emit a load of the value so DI correctly diagnoses the use before
init.
0 commit comments