File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -3192,6 +3192,13 @@ void ASTMangler::appendEntity(const ValueDecl *decl) {
3192
3192
// Handle accessors specially, they are mangled as modifiers on the accessed
3193
3193
// declaration.
3194
3194
if (auto accessor = dyn_cast<AccessorDecl>(decl)) {
3195
+ // Distributed thunks associated with computed properties
3196
+ // are currently implemented as accessors but they don't
3197
+ // have to be and that could be changed in the future.
3198
+ //
3199
+ // Let's mangle them as `distributed func`s to make it easier
3200
+ // to change implementation and because runtime needs a function
3201
+ // type associated with the thunk to form a call to it.
3195
3202
if (accessor->isDistributedThunk ()) {
3196
3203
appendContextOf (decl);
3197
3204
appendDeclName (accessor->getStorage ());
You can’t perform that action at this time.
0 commit comments