mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Distributed: Fixes for non-copyable generics
This commit is contained in:
@@ -98,11 +98,14 @@ void SILGenFunction::emitDistributedIfRemoteBranch(SILLocation Loc,
|
||||
assert(isRemoteFn && "Could not find 'is remote' function, is the "
|
||||
"'Distributed' module available?");
|
||||
|
||||
auto conformances = SGM.M.getSwiftModule()->collectExistentialConformances(
|
||||
selfTy->getCanonicalType(), ctx.getAnyObjectType());
|
||||
|
||||
ManagedValue selfAnyObject = B.createInitExistentialRef(
|
||||
Loc,
|
||||
/*existentialType=*/getLoweredType(ctx.getAnyObjectType()),
|
||||
/*formalConcreteType=*/selfValue.getType().getASTType(),
|
||||
selfValue, {});
|
||||
/*formalConcreteType=*/selfTy->getCanonicalType(),
|
||||
selfValue, conformances);
|
||||
auto result = emitApplyOfLibraryIntrinsic(
|
||||
Loc, isRemoteFn, SubstitutionMap(), {selfAnyObject}, SGFContext());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user