File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -1060,10 +1060,9 @@ class SILGenType : public TypeMemberVisitor<SILGenType> {
1060
1060
// are existential and do not have witness tables.
1061
1061
for (auto *conformance : theType->getLocalConformances (
1062
1062
ConformanceLookupKind::NonInherited)) {
1063
- if (conformance->isComplete ()) {
1064
- if (auto *normal = dyn_cast<NormalProtocolConformance>(conformance))
1065
- SGM.getWitnessTable (normal);
1066
- }
1063
+ assert (conformance->isComplete ());
1064
+ if (auto *normal = dyn_cast<NormalProtocolConformance>(conformance))
1065
+ SGM.getWitnessTable (normal);
1067
1066
}
1068
1067
}
1069
1068
@@ -1183,10 +1182,9 @@ class SILGenExtension : public TypeMemberVisitor<SILGenExtension> {
1183
1182
// extension.
1184
1183
for (auto *conformance : e->getLocalConformances (
1185
1184
ConformanceLookupKind::All)) {
1186
- if (conformance->isComplete ()) {
1187
- if (auto *normal =dyn_cast<NormalProtocolConformance>(conformance))
1188
- SGM.getWitnessTable (normal);
1189
- }
1185
+ assert (conformance->isComplete ());
1186
+ if (auto *normal =dyn_cast<NormalProtocolConformance>(conformance))
1187
+ SGM.getWitnessTable (normal);
1190
1188
}
1191
1189
}
1192
1190
}
You can’t perform that action at this time.
0 commit comments