mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Serialize ObjC selectors for protocols
The ObjCMethodLookupTable for protocols was not being serialized and rebuilt on load, so NominalTypeDecl::lookupDirect() on selectors was not working correctly for deserialized types. Correct this oversight.
This commit is contained in:
@@ -1320,7 +1320,7 @@ void SerializedModuleLoaderBase::loadExtensions(NominalTypeDecl *nominal,
|
||||
}
|
||||
|
||||
void SerializedModuleLoaderBase::loadObjCMethods(
|
||||
ClassDecl *classDecl,
|
||||
NominalTypeDecl *typeDecl,
|
||||
ObjCSelector selector,
|
||||
bool isInstanceMethod,
|
||||
unsigned previousGeneration,
|
||||
@@ -1328,7 +1328,7 @@ void SerializedModuleLoaderBase::loadObjCMethods(
|
||||
for (auto &modulePair : LoadedModuleFiles) {
|
||||
if (modulePair.second <= previousGeneration)
|
||||
continue;
|
||||
modulePair.first->loadObjCMethods(classDecl, selector, isInstanceMethod,
|
||||
modulePair.first->loadObjCMethods(typeDecl, selector, isInstanceMethod,
|
||||
methods);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user