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 @@ -455,23 +455,22 @@ LifetimeDependenceInfo::infer(AbstractFunctionDecl *afd) {
455455 unsigned paramIndex = 0 ;
456456 bool hasParamError = false ;
457457 for (auto *param : *afd->getParameters ()) {
458- SWIFT_DEFER {
459- paramIndex++;
460- };
458+ SWIFT_DEFER { paramIndex++; };
461459 Type paramTypeInContext =
462460 afd->mapTypeIntoContext (param->getInterfaceType ());
463461 if (paramTypeInContext->hasError ()) {
464462 hasParamError = true ;
465463 continue ;
466464 }
467465 auto paramOwnership = param->getValueOwnership ();
468- if (paramTypeInContext->isEscapable () && paramOwnership == ValueOwnership::Default) {
466+ if (paramTypeInContext->isEscapable () &&
467+ paramOwnership == ValueOwnership::Default) {
469468 continue ;
470469 }
471470
472471 auto lifetimeKind = getLifetimeDependenceKindFromType (paramTypeInContext);
473- if (!isLifetimeDependenceCompatibleWithOwnership (lifetimeKind, paramOwnership,
474- afd)) {
472+ if (!isLifetimeDependenceCompatibleWithOwnership (lifetimeKind,
473+ paramOwnership, afd)) {
475474 continue ;
476475 }
477476 if (candidateParam) {
@@ -500,8 +499,7 @@ LifetimeDependenceInfo::infer(AbstractFunctionDecl *afd) {
500499 return std::nullopt ;
501500 }
502501 diags.diagnose (returnLoc,
503- diag::lifetime_dependence_cannot_infer_no_candidates,
504- " " );
502+ diag::lifetime_dependence_cannot_infer_no_candidates, " " );
505503 return std::nullopt ;
506504 }
507505 return lifetimeDependenceInfo;
You can’t perform that action at this time.
0 commit comments