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) {
620620}
621621
622622void DistributedAccessor::emit () {
623- auto *actor = getDistributedActorOf (Target);
623+ assert (getDistributedActorOf (Target) &&
624+ " target of distributed accessor must be a distributed actor" );
624625 auto targetTy = Target->getLoweredFunctionType ();
625626 SILFunctionConventions targetConv (targetTy, IGF.getSILModule ());
626627 TypeExpansionContext expansionContext = IGM.getMaximalTypeExpansionContext ();
@@ -663,6 +664,7 @@ void DistributedAccessor::emit() {
663664 // Witness table for decoder conformance to DistributedTargetInvocationDecoder
664665 auto *decoderProtocolWitness = params.claimNext ();
665666 auto *distributedActorWitness = params.claimNext ();
667+ (void )distributedActorWitness;
666668
667669 // Preliminary: Setup async context for this accessor.
668670 {
You can’t perform that action at this time.
0 commit comments