mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Serialization: normalize the path before use
This normalizes the path so that we always have the mapping in normal form. This fixes a bug in the cross-module import tracing, allowing us to finally enable the test on Windows.
This commit is contained in:
@@ -1228,6 +1228,7 @@ SerializedModuleLoaderBase::loadModule(SourceLoc importLoc,
|
||||
Ctx.addLoadedModule(M);
|
||||
SWIFT_DEFER { M->setHasResolvedImports(); };
|
||||
|
||||
llvm::sys::path::native(moduleInterfacePath);
|
||||
auto *file =
|
||||
loadAST(*M, moduleID.Loc, moduleInterfacePath,
|
||||
std::move(moduleInputBuffer), std::move(moduleDocInputBuffer),
|
||||
|
||||
Reference in New Issue
Block a user