Skip to content

Commit a15f520

Browse files
committed
[gardening] Use a higher level method that describes what a piece of code is doing instead of source inlining it.
1 parent 328629e commit a15f520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILGen/SILGenConcurrency.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static void setExpectedExecutorForParameterIsolation(SILGenFunction &SGF,
5050
ActorIsolation actorIsolation) {
5151
auto loc = RegularLocation::getAutoGeneratedLocation(SGF.F.getLocation());
5252
ManagedValue actorArg;
53-
if (actorIsolation.getActorInstanceParameter() == 0) {
53+
if (actorIsolation.isActorInstanceForSelfParameter()) {
5454
ManagedValue selfMV;
5555
auto selfArg = SGF.F.getSelfArgument();
5656
if (selfArg->getOwnershipKind() == OwnershipKind::Guaranteed) {

0 commit comments

Comments
 (0)