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 c806d08 commit 6b7381fCopy full SHA for 6b7381f
include/swift/IRGen/Linking.h
@@ -1448,17 +1448,7 @@ class LinkEntity {
1448
1449
const ValueDecl *getDecl() const {
1450
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;
+ return reinterpret_cast<ValueDecl*>(Pointer);
1462
}
1463
1464
const ExtensionDecl *getExtension() const {
0 commit comments