mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This peephole optimization didn't consider that an alloc_stack of an enum can be overridden by another value. The fix is to remove this peephole optimization at all because it is already covered by `optimizeEnum` in alloc_stack simplification. Fixes a miscompile https://github.com/swiftlang/swift/issues/85687 rdar://165374568