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) {
141
141
// /
142
142
// / Emulates the following enum with associated value:
143
143
// /
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
+ // / }
147
150
// / }
148
151
class PartialMutationError {
149
152
struct FeatureDisabled {
@@ -154,9 +157,8 @@ class PartialMutationError {
154
157
};
155
158
TaggedUnion<FeatureDisabled, HasDeinit> kind;
156
159
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) {}
160
162
161
163
public:
162
164
// / The type within the aggregate responsible for the error.
You can’t perform that action at this time.
0 commit comments