We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be460a5 commit ac4ae90Copy full SHA for ac4ae90
lib/Sema/CodeSynthesisDistributedActor.cpp
@@ -531,6 +531,9 @@ static FuncDecl *createDistributedThunkFunction(FuncDecl *func) {
531
auto funcParam = funcParams->get(i);
532
533
auto paramName = funcParam->getParameterName();
534
+ // If internal name is empty it could only mean either
535
+ // `_:` or `x _: ...`, so let's auto-generate a name
536
+ // to be used in the body of a thunk.
537
if (paramName.empty()) {
538
paramName = C.getIdentifier("p" + llvm::utostr(i));
539
}
0 commit comments