Fix path separator issue on Windows.

llvm-svn: 236804
This commit is contained in:
Nikola Smiljanic
2015-05-08 03:26:15 +00:00
parent cd81914772
commit 1cf6c28a9c

View File

@@ -614,10 +614,8 @@ const FileEntry *HeaderSearch::LookupFile(
const FileEntry *Includer = IncluderAndDir.first;
// Concatenate the requested file onto the directory.
// FIXME: Portability. Filename concatenation should be in sys::Path.
TmpDir = IncluderAndDir.second->getName();
TmpDir.push_back('/');
TmpDir.append(Filename.begin(), Filename.end());
llvm::sys::path::append(TmpDir, Filename);
// FIXME: We don't cache the result of getFileInfo across the call to
// getFileAndSuggestModule, because it's a reference to an element of