mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #23724 from brentdax/static-start
[NFC] Correct assumptions about static AbstractStorageDecls
This commit is contained in:
@@ -184,10 +184,8 @@ static AccessorDecl *createGetterPrototype(AbstractStorageDecl *storage,
|
||||
auto *getterParams = buildIndexForwardingParamList(storage, {}, ctx);
|
||||
|
||||
SourceLoc staticLoc;
|
||||
if (auto var = dyn_cast<VarDecl>(storage)) {
|
||||
if (var->isStatic())
|
||||
staticLoc = var->getLoc();
|
||||
}
|
||||
if (storage->isStatic())
|
||||
staticLoc = storage->getLoc();
|
||||
|
||||
auto storageInterfaceType = storage->getValueInterfaceType();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user