Skip to content

Commit d350737

Browse files
committed
use a variable instead
1 parent 5118086 commit d350737

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/Sema/TypeCheckConcurrency.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,10 +1203,9 @@ bool swift::diagnoseNonSendableTypesInReference(
12031203
}
12041204

12051205
if (diagnoseNonSendableTypes(
1206-
resultType, fromDC, derivedConformanceType,
1207-
refLoc, diagnoseLoc.isInvalid() ? refLoc : diagnoseLoc,
1208-
getSendableResultDiag(refKind),
1209-
func, getActorIsolation()))
1206+
resultType, fromDC, derivedConformanceType, refLoc,
1207+
diagnoseLoc.isInvalid() ? refLoc : diagnoseLoc, diag, func,
1208+
getActorIsolation()))
12101209
return true;
12111210
}
12121211
}

0 commit comments

Comments
 (0)