Skip to content

Commit 4d53245

Browse files
authored
Fix some warnings in GenDistributed.cpp (#71235)
1 parent 7aa338e commit 4d53245

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/IRGen/GenDistributed.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,8 @@ void DistributedAccessor::emitReturn(llvm::Value *errorValue) {
620620
}
621621

622622
void 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
{

0 commit comments

Comments
 (0)