]> granicus.if.org Git - clang/commitdiff
Revert "Fix path separator issue on Windows."
authorNikola Smiljanic <popizdeh@gmail.com>
Fri, 8 May 2015 06:02:37 +0000 (06:02 +0000)
committerNikola Smiljanic <popizdeh@gmail.com>
Fri, 8 May 2015 06:02:37 +0000 (06:02 +0000)
This reverts commit 9242ff16b0460b488691fd70b42a2bf81a531e3a.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236806 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/HeaderSearch.cpp

index b316ccae6529d3bd7507e63d032122297ce7872d..04cdb0f69f7e77f62ee225f9d4834cd3d1471915 100644 (file)
@@ -614,8 +614,10 @@ 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();
-      llvm::sys::path::append(TmpDir, Filename);
+      TmpDir.push_back('/');
+      TmpDir.append(Filename.begin(), Filename.end());
 
       // FIXME: We don't cache the result of getFileInfo across the call to
       // getFileAndSuggestModule, because it's a reference to an element of