We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd81914 commit 1cf6c28Copy full SHA for 1cf6c28
clang/lib/Lex/HeaderSearch.cpp
@@ -614,10 +614,8 @@ const FileEntry *HeaderSearch::LookupFile(
614
const FileEntry *Includer = IncluderAndDir.first;
615
616
// Concatenate the requested file onto the directory.
617
- // FIXME: Portability. Filename concatenation should be in sys::Path.
618
TmpDir = IncluderAndDir.second->getName();
619
- TmpDir.push_back('/');
620
- TmpDir.append(Filename.begin(), Filename.end());
+ llvm::sys::path::append(TmpDir, Filename);
621
622
// FIXME: We don't cache the result of getFileInfo across the call to
623
// getFileAndSuggestModule, because it's a reference to an element of
0 commit comments