diff options
Diffstat (limited to 'clang/lib/Frontend/InitHeaderSearch.cpp')
| -rw-r--r-- | clang/lib/Frontend/InitHeaderSearch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/InitHeaderSearch.cpp b/clang/lib/Frontend/InitHeaderSearch.cpp index 6ea7ecb8703..b07dcc7c376 100644 --- a/clang/lib/Frontend/InitHeaderSearch.cpp +++ b/clang/lib/Frontend/InitHeaderSearch.cpp @@ -111,7 +111,7 @@ void InitHeaderSearch::AddPath(const llvm::Twine &Path, // Handle isysroot. if (Group == System && !IgnoreSysRoot && MappedPath.isAbsolute() && - IncludeSysroot.isValid() && IncludeSysroot.isAbsolute() && + IncludeSysroot.isValid() && IncludeSysroot != llvm::sys::Path::GetRootDirectory()) { MappedPathStorage.clear(); MappedPathStr = |

