File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -141,9 +141,12 @@ inline Feature partialMutationFeature(PartialMutation::Kind kind) {
141141// /
142142// / Emulates the following enum with associated value:
143143// /
144- // / enum class PartialMutationError {
145- // / case featureDisabled(SILType)
146- // / case hasDeinit(SILType, NominalTypeDecl)
144+ // / struct PartialMutationError {
145+ // / let type: SILType
146+ // / enum Kind {
147+ // / case featureDisabled
148+ // / case hasDeinit(NominalTypeDecl)
149+ // / }
147150// / }
148151class PartialMutationError {
149152 struct FeatureDisabled {
@@ -154,9 +157,8 @@ class PartialMutationError {
154157 };
155158 TaggedUnion<FeatureDisabled, HasDeinit> kind;
156159
157- PartialMutationError (SILType type, FeatureDisabled fd)
158- : kind({fd}), type(type) {}
159- PartialMutationError (SILType type, HasDeinit r) : kind({r}), type(type) {}
160+ PartialMutationError (SILType type, Payload payload)
161+ : payload(payload), type(type) {}
160162
161163public:
162164 // / The type within the aggregate responsible for the error.
You can’t perform that action at this time.
0 commit comments