Skip to content

Commit 6f77e86

Browse files
committed
potential fix
1 parent 7fc1ac4 commit 6f77e86

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

lib/AST/RequirementMachine/GenericSignatureQueries.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,6 @@ bool RequirementMachine::haveSameShape(Type type1, Type type2) const {
762762
}
763763

764764
void RequirementMachine::verify(const MutableTerm &term) const {
765-
#ifndef NDEBUG
766765
// If the term is in the generic parameter domain, ensure we have a valid
767766
// generic parameter.
768767
if (term.begin()->getKind() == Symbol::Kind::GenericParam) {
@@ -847,5 +846,4 @@ void RequirementMachine::verify(const MutableTerm &term) const {
847846
dump(llvm::errs());
848847
abort();
849848
}
850-
#endif
851849
}

lib/IRGen/GenDistributed.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,17 +271,20 @@ static CanSILFunctionType getAccessorType(IRGenModule &IGM,
271271
auto *actor = getDistributedActorOf(Target);
272272
assert(actor);
273273

274-
for (auto *genericParam : actor->getInnermostGenericParamTypes())
275-
genericParams.push_back(genericParam);
276-
274+
// for (auto *genericParam : actor->getInnermostGenericParamTypes())
275+
// genericParams.push_back(genericParam);
276+
//
277277
// Add a generic parameter `D` which stands for decoder type in the
278278
// accessor signature - `inout D`.
279279
genericParams.push_back(decoderType);
280280
// Add a requirement that decoder conforms to the expected protocol.
281281
genericRequirements.push_back(
282282
{RequirementKind::Conformance, decoderType, decoderProtocolTy});
283283

284-
signature = GenericSignature::get(genericParams, genericRequirements);
284+
// signature = GenericSignature::get(genericParams, genericRequirements);
285+
signature = buildGenericSignature(Context, actor->getGenericSignature(),
286+
std::move(genericParams),
287+
std::move(genericRequirements));
285288
}
286289

287290
auto accessorTy = GenericFunctionType::get(
@@ -659,6 +662,8 @@ void DistributedAccessor::emit() {
659662
// Witness table for decoder conformance to DistributedTargetInvocationDecoder
660663
auto *decoderProtocolWitness = params.claimNext();
661664

665+
(void) params.claimAll();
666+
662667
// Preliminary: Setup async context for this accessor.
663668
{
664669
auto fpKind = FunctionPointerKind::defaultAsync();

0 commit comments

Comments
 (0)