summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/InitHeaderSearch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Frontend/InitHeaderSearch.cpp')
-rw-r--r--clang/lib/Frontend/InitHeaderSearch.cpp2
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 =
OpenPOWER on IntegriCloud