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:
Saleem Abdulrasool
2021-12-21 19:46:10 -08:00
parent 319672d084
commit 849d5f0aaf
3 changed files with 1 additions and 5 deletions

View File

@@ -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),