Skip to content

Commit 6b7381f

Browse files
committed
remove un-necessary special handling distributed thunks in LinkEntity.getDecl
1 parent c806d08 commit 6b7381f

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

include/swift/IRGen/Linking.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,17 +1448,7 @@ class LinkEntity {
14481448

14491449
const ValueDecl *getDecl() const {
14501450
assert(isDeclKind(getKind()));
1451-
auto decl = reinterpret_cast<ValueDecl*>(Pointer);
1452-
1453-
// FIXME: determine if this matters after all or not
1454-
// if it is a distributed thunk, find the thunk decl and mangled based on it
1455-
if (auto afd = dyn_cast<AbstractFunctionDecl>(decl)) {
1456-
if (afd->isDistributed()) {
1457-
decl = afd->getDistributedThunk();
1458-
}
1459-
}
1460-
1461-
return decl;
1451+
return reinterpret_cast<ValueDecl*>(Pointer);
14621452
}
14631453

14641454
const ExtensionDecl *getExtension() const {

0 commit comments

Comments
 (0)