Skip to content

Commit cf385dc

Browse files
committed
Revert "Fix path separator issue on Windows."
This reverts commit 9242ff16b0460b488691fd70b42a2bf81a531e3a. llvm-svn: 236806
1 parent fa75259 commit cf385dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/lib/Lex/HeaderSearch.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,10 @@ const FileEntry *HeaderSearch::LookupFile(
614614
const FileEntry *Includer = IncluderAndDir.first;
615615

616616
// Concatenate the requested file onto the directory.
617+
// FIXME: Portability. Filename concatenation should be in sys::Path.
617618
TmpDir = IncluderAndDir.second->getName();
618-
llvm::sys::path::append(TmpDir, Filename);
619+
TmpDir.push_back('/');
620+
TmpDir.append(Filename.begin(), Filename.end());
619621

620622
// FIXME: We don't cache the result of getFileInfo across the call to
621623
// getFileAndSuggestModule, because it's a reference to an element of

0 commit comments

Comments
 (0)