File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -620,7 +620,8 @@ void DistributedAccessor::emitReturn(llvm::Value *errorValue) {
620
620
}
621
621
622
622
void DistributedAccessor::emit () {
623
- auto *actor = getDistributedActorOf (Target);
623
+ assert (getDistributedActorOf (Target) &&
624
+ " target of distributed accessor must be a distributed actor" );
624
625
auto targetTy = Target->getLoweredFunctionType ();
625
626
SILFunctionConventions targetConv (targetTy, IGF.getSILModule ());
626
627
TypeExpansionContext expansionContext = IGM.getMaximalTypeExpansionContext ();
@@ -663,6 +664,7 @@ void DistributedAccessor::emit() {
663
664
// Witness table for decoder conformance to DistributedTargetInvocationDecoder
664
665
auto *decoderProtocolWitness = params.claimNext ();
665
666
auto *distributedActorWitness = params.claimNext ();
667
+ (void )distributedActorWitness;
666
668
667
669
// Preliminary: Setup async context for this accessor.
668
670
{
You can’t perform that action at this time.
0 commit comments