Fix pdb-type-server-simple test on non-Windows

Assume that the LF_TYPESERVER2 record contains Windows-style paths.  In
any case, 'sys::path::filename(Path, Style::windows)' will work on
Unix-style paths.

llvm-svn: 308241
This commit is contained in:
Reid Kleckner 2017-07-18 00:33:53 +00:00
parent c50349d4c6
commit f8522d81c3
1 changed files with 2 additions and 1 deletions

View File

@ -255,7 +255,8 @@ const CVIndexMap &PDBLinker::maybeMergeTypeServerPDB(ObjectFile *File,
StringRef LocalPath =
!File->ParentName.empty() ? File->ParentName : File->getName();
SmallString<128> Path = sys::path::parent_path(LocalPath);
sys::path::append(Path, sys::path::filename(TS.getName()));
sys::path::append(
Path, sys::path::filename(TS.getName(), sys::path::Style::windows));
ExpectedSession = tryToLoadPDB(TS.getGuid(), Path);
}
if (auto E = ExpectedSession.takeError())