Skip to content

Commit c2e662c

Browse files
committed
Sema: Use getDeclaredInterfaceType() in a couple of places
1 parent 03b3ec8 commit c2e662c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Sema/DerivedConformanceDistributedActor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static FuncDecl* createLocalFunc_doInvokeOnReturn(
236236
auto requirement =
237237
Requirement(RequirementKind::Conformance,
238238
resultGenericParamDecl->getDeclaredInterfaceType(),
239-
p->getInterfaceType()->getMetatypeInstanceType());
239+
p->getDeclaredInterfaceType());
240240
requirements.push_back(requirement);
241241
}
242242
GenericSignature doInvokeGenSig =

lib/Sema/TypeCheckDistributed.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ GetDistributedActorArgumentDecodingMethodRequest::evaluate(Evaluator &evaluator,
843843
auto *decoder = ctx.getDistributedActorInvocationDecoder(actor);
844844
assert(decoder);
845845

846-
auto decoderTy = decoder->getInterfaceType()->getMetatypeInstanceType();
846+
auto decoderTy = decoder->getDeclaredInterfaceType();
847847

848848
auto members = TypeChecker::lookupMember(actor->getDeclContext(), decoderTy,
849849
DeclNameRef(ctx.Id_decodeNextArgument));

0 commit comments

Comments
 (0)