mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SerializeLoc: ensure we can load serialized source locations when we are importing a module from a Swift interface file
This commit is contained in:
@@ -1036,7 +1036,10 @@ std::error_code ModuleInterfaceLoader::findModuleFilesInDirectory(
|
||||
if (ModuleBuffer) {
|
||||
*ModuleBuffer = std::move(*ModuleBufferOrErr);
|
||||
}
|
||||
|
||||
// Open .swiftsourceinfo file if it's present.
|
||||
SerializedModuleLoaderBase::openModuleSourceInfoFile(ModuleID, ModPath,
|
||||
ModuleSourceInfoFilename,
|
||||
ModuleSourceInfoBuffer);
|
||||
// Delegate back to the serialized module loader to load the module doc.
|
||||
llvm::SmallString<256> DocPath{DirPath};
|
||||
path::append(DocPath, ModuleDocFilename);
|
||||
|
||||
Reference in New Issue
Block a user