Skip to content

Conversation

@eeckstein
Copy link
Contributor

Storing a trivial enum case in a non-trivial enum must be treated like a non-trivial init or assign, e.g.

  %1 = enum $Optional<String>, #Optional.none!enumelt
  store %1 to [trivial] %0  // <- cannot delete this store!
  store %2 to [assign] %0

…a non-trivial enum

Storing a trivial enum case in a non-trivial enum must be treated like a non-trivial init or assign, e.g.
```
  %1 = enum $Optional<String>, #Optional.none!enumelt
  store %1 to [trivial] %0  // <- cannot delete this store!
  store %2 to [assign] %0
```
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

@eeckstein eeckstein merged commit bc88160 into swiftlang:main Oct 3, 2025
3 checks passed
@eeckstein eeckstein deleted the fix-dse branch October 3, 2025 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant