Skip to content

Commit 1cf6c28

Browse files
committed
Fix path separator issue on Windows.
llvm-svn: 236804
1 parent cd81914 commit 1cf6c28

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/Lex/HeaderSearch.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -614,10 +614,8 @@ 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.
618617
TmpDir = IncluderAndDir.second->getName();
619-
TmpDir.push_back('/');
620-
TmpDir.append(Filename.begin(), Filename.end());
618+
llvm::sys::path::append(TmpDir, Filename);
621619

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

0 commit comments

Comments
 (0)