[Distributed] Decl: Add a new distributed-thunk bit

The flag is used to distinguish between regular functions/accessors
and synthesized distributed thunks.
This commit is contained in:
Pavel Yaskevich
2022-06-27 11:00:40 -07:00
parent 59ec5ab552
commit b2b1efd268
7 changed files with 31 additions and 4 deletions

View File

@@ -731,6 +731,7 @@ static FuncDecl *createDistributedThunkFunction(FuncDecl *func) {
genericParamList, params,
func->getResultInterfaceType(), DC);
thunk->setSynthesized(true);
thunk->setDistributedThunk(true);
thunk->getAttrs().add(new (C) NonisolatedAttr(/*isImplicit=*/true));
if (isa<ClassDecl>(DC))