Skip to content

Commit 0fd63d2

Browse files
committed
[Distributed] ASTMangler also must account for distributed thunk entity
1 parent fb6453c commit 0fd63d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/AST/ASTMangler.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4373,6 +4373,11 @@ void ASTMangler::appendEntity(const ValueDecl *decl) {
43734373
appendDeclName(decl);
43744374
appendDeclType(decl, base, FunctionMangling);
43754375
appendOperator("F");
4376+
if (auto func = dyn_cast<AbstractFunctionDecl>(decl)) {
4377+
if (func->isDistributedThunk()) {
4378+
appendSymbolKind(SymbolKind::DistributedThunk);
4379+
}
4380+
}
43764381
if (decl->isStatic())
43774382
appendOperator("Z");
43784383
}

0 commit comments

Comments
 (0)