mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Distributed] avoid double typechecking dist func decl
This commit is contained in:
@@ -699,8 +699,7 @@ FuncDecl *GetDistributedThunkRequest::evaluate(
|
||||
// Force type-checking the original function, so we can avoid synthesizing
|
||||
// the thunks (which would have many of the same errors, if they are caused
|
||||
// by a bad source function signature, e.g. missing conformances etc).
|
||||
(void) TypeChecker::typeCheckDecl(distributedTarget);
|
||||
if (distributedTarget->getDiags().hadAnyError()) {
|
||||
if (distributedTarget->getInterfaceType()->hasError()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user