[Distributed] Synthesis: Start using special mangling for distributed thunks

This commit is contained in:
Pavel Yaskevich
2022-03-17 14:02:42 -07:00
parent 7e182cf43d
commit c9a0295d6d
2 changed files with 8 additions and 5 deletions

View File

@@ -914,6 +914,10 @@ std::string SILDeclRef::mangle(ManglingKind MKind) const {
return CDeclA->Name.str();
}
if (SKind == ASTMangler::SymbolKind::DistributedThunk) {
return mangler.mangleDistributedThunk(cast<FuncDecl>(getDecl()));
}
// Otherwise, fall through into the 'other decl' case.
LLVM_FALLTHROUGH;