mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Fix deserialization crash occurring when a mixed framework fails to load its ObjC part.
rdar://27709042
This commit is contained in:
@@ -1093,7 +1093,7 @@ Status ModuleFile::associateWithFileContext(FileUnit *file,
|
||||
"invalid module name (submodules not yet supported)");
|
||||
}
|
||||
auto module = getModule(modulePath);
|
||||
if (!module) {
|
||||
if (!module || module->failedToLoad()) {
|
||||
// If we're missing the module we're shadowing, treat that specially.
|
||||
if (modulePath.size() == 1 &&
|
||||
modulePath.front() == file->getParentModule()->getName()) {
|
||||
|
||||
Reference in New Issue
Block a user