Skip to content

Commit 8923174

Browse files
committed
[IRGen] Distributed: Drop unused parameter from getAccessorType
1 parent be1551f commit 8923174

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/IRGen/GenDistributed.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ class DistributedAccessor {
199199

200200
/// Compute a type of a distributed method accessor function based
201201
/// on the provided distributed target.
202-
static CanSILFunctionType getAccessorType(IRGenModule &IGM,
203-
SILFunction *Target) {
202+
static CanSILFunctionType getAccessorType(IRGenModule &IGM) {
204203
auto &Context = IGM.Context;
205204

206205
// func __accessor__<D: DistributedTargetInvocationDecoder>(
@@ -298,7 +297,7 @@ IRGenModule::getAddrOfDistributedTargetAccessor(SILFunction *F,
298297
return entry;
299298
}
300299

301-
Signature signature = getSignature(getAccessorType(*this, F));
300+
Signature signature = getSignature(getAccessorType(*this));
302301
LinkInfo link = LinkInfo::get(*this, entity, forDefinition);
303302

304303
return createFunction(*this, link, signature);
@@ -313,7 +312,7 @@ void IRGenModule::emitDistributedTargetAccessor(SILFunction *target) {
313312
return;
314313

315314
IRGenFunction IGF(*this, f);
316-
DistributedAccessor(IGF, target, getAccessorType(*this, target)).emit();
315+
DistributedAccessor(IGF, target, getAccessorType(*this)).emit();
317316
}
318317

319318
DistributedAccessor::DistributedAccessor(IRGenFunction &IGF,

0 commit comments

Comments
 (0)