Skip to content

Commit d85ff76

Browse files
committed
Fix whitespace issues
1 parent b91ad62 commit d85ff76

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/Sema/TypeChecker.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ bool TypeChecker::diagnoseInvalidFunctionType(FunctionType *fnTy, SourceLoc loc,
640640
if (hasValidDifferentiabilityParam)
641641
diagnostic.fixItInsert(diagLoc, "@noDerivative ");
642642
}
643-
643+
644644
// Reject the case where all parameters have '@noDerivative'.
645645
if (!alreadyDiagnosedOneParam && !hasValidDifferentiabilityParam) {
646646
auto diagLoc = repr ? (*repr)->getArgsTypeRepr()->getLoc() : loc;
@@ -659,20 +659,20 @@ bool TypeChecker::diagnoseInvalidFunctionType(FunctionType *fnTy, SourceLoc loc,
659659
bool resultIsDifferentiable =
660660
isDifferentiable(result, /*tangentVectorEqualsSelf*/ isLinear, dc,
661661
stage);
662-
662+
663663
// Reject the case where there are multiple semantic results.
664664
if (resultIsDifferentiable && hasInoutDiffParameter) {
665665
auto diagLoc = repr ? (*repr)->getArgsTypeRepr()->getLoc() : loc;
666666
auto diag = ctx.Diags.diagnose(
667667
diagLoc,
668668
diag::differentiable_function_type_multiple_semantic_results);
669669
hadAnyError = true;
670-
670+
671671
if (repr) {
672672
diag.highlight((*repr)->getSourceRange());
673673
}
674674
}
675-
675+
676676
// Reject the case where there are no semantic results.
677677
if (!resultIsDifferentiable && !hasInoutDiffParameter) {
678678
auto diagLoc = repr ? (*repr)->getResultTypeRepr()->getLoc() : loc;
@@ -681,7 +681,7 @@ bool TypeChecker::diagnoseInvalidFunctionType(FunctionType *fnTy, SourceLoc loc,
681681
diagLoc, diag::differentiable_function_type_invalid_result, resultStr,
682682
isLinear);
683683
hadAnyError = true;
684-
684+
685685
if (repr) {
686686
diag.highlight((*repr)->getResultTypeRepr()->getSourceRange());
687687
}

0 commit comments

Comments
 (0)