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) {
455
455
unsigned paramIndex = 0 ;
456
456
bool hasParamError = false ;
457
457
for (auto *param : *afd->getParameters ()) {
458
- SWIFT_DEFER {
459
- paramIndex++;
460
- };
458
+ SWIFT_DEFER { paramIndex++; };
461
459
Type paramTypeInContext =
462
460
afd->mapTypeIntoContext (param->getInterfaceType ());
463
461
if (paramTypeInContext->hasError ()) {
464
462
hasParamError = true ;
465
463
continue ;
466
464
}
467
465
auto paramOwnership = param->getValueOwnership ();
468
- if (paramTypeInContext->isEscapable () && paramOwnership == ValueOwnership::Default) {
466
+ if (paramTypeInContext->isEscapable () &&
467
+ paramOwnership == ValueOwnership::Default) {
469
468
continue ;
470
469
}
471
470
472
471
auto lifetimeKind = getLifetimeDependenceKindFromType (paramTypeInContext);
473
- if (!isLifetimeDependenceCompatibleWithOwnership (lifetimeKind, paramOwnership,
474
- afd)) {
472
+ if (!isLifetimeDependenceCompatibleWithOwnership (lifetimeKind,
473
+ paramOwnership, afd)) {
475
474
continue ;
476
475
}
477
476
if (candidateParam) {
@@ -500,8 +499,7 @@ LifetimeDependenceInfo::infer(AbstractFunctionDecl *afd) {
500
499
return std::nullopt;
501
500
}
502
501
diags.diagnose (returnLoc,
503
- diag::lifetime_dependence_cannot_infer_no_candidates,
504
- " " );
502
+ diag::lifetime_dependence_cannot_infer_no_candidates, " " );
505
503
return std::nullopt;
506
504
}
507
505
return lifetimeDependenceInfo;
You can’t perform that action at this time.
0 commit comments