mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
If there is a "constant" enum argument to a synthesized enum comparison, we can always inline it, because most of it will be constant folded anyway.
This ensures the compiler is not creating terrible code for very simple enum comparisons, like
```
if someEnum == .someCase {
...
}
```
rdar://85677499
57 KiB
57 KiB