diff options
| author | Kadir Cetinkaya <kadircet@google.com> | 2019-04-24 08:45:03 +0000 |
|---|---|---|
| committer | Kadir Cetinkaya <kadircet@google.com> | 2019-04-24 08:45:03 +0000 |
| commit | cb27266d3b1a362acd736ee802ebed8a166e2175 (patch) | |
| tree | be4dc795fbe69e111b7e788f9c81bce83d1086c4 /lib/Lex/HeaderSearch.cpp | |
| parent | 418eae9689448e9a0cf7abcda8cca56f420b752f (diff) | |
| download | clang-cb27266d3b1a362acd736ee802ebed8a166e2175.tar.gz | |
[clang][HeaderSearch] Make sure there are no backslashes in suggestedPath
Reviewers: sammccall
Differential Revision: https://reviews.llvm.org/D60995
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/HeaderSearch.cpp')
| -rw-r--r-- | lib/Lex/HeaderSearch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/HeaderSearch.cpp b/lib/Lex/HeaderSearch.cpp index e0ffb8758c..a26df9a7f6 100644 --- a/lib/Lex/HeaderSearch.cpp +++ b/lib/Lex/HeaderSearch.cpp @@ -1720,5 +1720,5 @@ std::string HeaderSearch::suggestPathToFileForDiagnostics( if (IsSystem) *IsSystem = BestPrefixLength ? BestSearchDir >= SystemDirIdx : false; - return File.drop_front(BestPrefixLength); + return path::convert_to_slash(File.drop_front(BestPrefixLength)); } |
