File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ void SwitchEnumBuilder::emit() && {
106
106
input = builder.createOwnedPHIArgument (optional.getType ());
107
107
}
108
108
handler (input, presentScope);
109
- assert (! builder.hasValidInsertionPoint () );
109
+ builder.clearInsertionPoint ( );
110
110
}
111
111
112
112
for (NormalCaseData &caseData : caseDataArray) {
@@ -133,7 +133,7 @@ void SwitchEnumBuilder::emit() && {
133
133
}
134
134
}
135
135
handler (input, presentScope);
136
- assert (! builder.hasValidInsertionPoint () );
136
+ builder.clearInsertionPoint ( );
137
137
}
138
138
139
139
// If we are asked to create a default block and it is specified that the
@@ -154,6 +154,6 @@ void SwitchEnumBuilder::emit() && {
154
154
input = builder.createOwnedPHIArgument (optional.getType ());
155
155
}
156
156
handler (input, presentScope);
157
- assert (! builder.hasValidInsertionPoint () );
157
+ builder.clearInsertionPoint ( );
158
158
}
159
159
}
You can’t perform that action at this time.
0 commit comments