Skip to content

Commit eff8cc2

Browse files
committed
[Distributed] Simplify checking for Any type
1 parent 9c0c70b commit eff8cc2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sema/DerivedConformance/DerivedConformanceDistributedActor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,7 @@ deriveBodyDistributed_invokeHandlerOnReturn(AbstractFunctionDecl *afd,
335335
// If the SerializationRequirement requires it, we need to emit a cast:
336336
// metatype as! <<concrete SerializationRequirement.Type>>
337337
bool serializationRequirementIsAny =
338-
metatypeParam->getInterfaceType()->getMetatypeInstanceType()->isEqual(
339-
C.getAnyExistentialType());
338+
metatypeParam->getInterfaceType()->getMetatypeInstanceType()->isAny();
340339

341340
auto metatypeRef =
342341
new (C) DeclRefExpr(ConcreteDeclRef(metatypeParam), dloc, implicit);

0 commit comments

Comments
 (0)