File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -5530,6 +5530,22 @@ void ConformanceChecker::resolveValueWitnesses() {
5530
5530
.withEnterIsolation (*enteringIsolation));
5531
5531
}
5532
5532
5533
+ // FIXME: almost right...
5534
+ // if (requirement->isDistributed()) {
5535
+ // // When witnessing a 'distributed' requirement, we also immediately
5536
+ // // register the witness for the distributed_thunk. Doing is more correct,
5537
+ // // as otherwise we might end up trying to modify an already completed
5538
+ // // conformance once we get to visit the thunk itself.
5539
+ // if (auto func = dyn_cast<AbstractFunctionDecl>(requirement)) {
5540
+ // auto thunkRequirement = func->getDistributedThunk();
5541
+ // assert(thunkRequirement->isDistributedThunk());
5542
+ // auto distributedWitness = dyn_cast<AbstractFunctionDecl>(witness);
5543
+ // auto thunkWitness = Witness(distributedWitness->getDistributedThunk());
5544
+ // assert(dyn_cast<FuncDecl>(thunkWitness.getDecl())->isDistributedThunk());
5545
+ // Conformance->setWitness(thunkRequirement, thunkWitness);
5546
+ // }
5547
+ // }
5548
+
5533
5549
// Objective-C checking for @objc requirements.
5534
5550
if (requirement->isObjC () &&
5535
5551
requirement->getName () == witness->getName () &&
You can’t perform that action at this time.
0 commit comments