Skip to content

Commit 69ba7f3

Browse files
authored
Sema: clean some unnecessary delayed diagnostics emits.. (#8001)
1 parent 3ab640d commit 69ba7f3

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

lib/Sema/TypeCheckProtocol.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,16 +1958,8 @@ namespace {
19581958

19591959
case ProtocolConformanceState::CheckingTypeWitnesses:
19601960
case ProtocolConformanceState::Checking:
1961-
// Nothing to do.
1962-
return conformance;
1963-
19641961
case ProtocolConformanceState::Complete:
1965-
if (conformance->isInvalid()) {
1966-
// Emit any delayed diagnostics and return.
1967-
// FIXME: Should we complete checking to emit more diagnostics?
1968-
ConformanceChecker(TC, conformance, MissingWitnesses, false).
1969-
emitDelayedDiags();
1970-
}
1962+
// Nothing to do.
19711963
return conformance;
19721964
}
19731965

@@ -4883,8 +4875,6 @@ void ConformanceChecker::checkConformance(MissingWitnessDiagnosisKind Kind) {
48834875
// FIXME: Caller checks that this type conforms to all of the
48844876
// inherited protocols.
48854877

4886-
emitDelayedDiags();
4887-
48884878
// Resolve all of the type witnesses.
48894879
resolveTypeWitnesses();
48904880

0 commit comments

Comments
 (0)