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 fa75259 commit cf385dcCopy full SHA for cf385dc
clang/lib/Lex/HeaderSearch.cpp
@@ -614,8 +614,10 @@ 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();
- llvm::sys::path::append(TmpDir, Filename);
619
+ TmpDir.push_back('/');
620
+ TmpDir.append(Filename.begin(), Filename.end());
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