Skip to content

Commit 5ac1926

Browse files
[CSDiagnostics] Break to the fallbacks when no specific diagnostics is found
1 parent 4b676ad commit 5ac1926

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/Sema/CSDiagnostics.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -659,10 +659,6 @@ bool GenericArgumentsMismatchFailure::diagnoseAsError() {
659659
break;
660660
}
661661

662-
case ConstraintLocator::GenericArgument: {
663-
break;
664-
}
665-
666662
case ConstraintLocator::OptionalPayload: {
667663
// If we have an inout expression, this comes from an
668664
// InoutToPointer argument mismatch failure.
@@ -689,7 +685,7 @@ bool GenericArgumentsMismatchFailure::diagnoseAsError() {
689685
}
690686

691687
default:
692-
return false;
688+
break;
693689
}
694690
}
695691

0 commit comments

Comments
 (0)