Remove an unintended restriction on sysroots introduced during the Path
conversion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119346 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Frontend/InitHeaderSearch.cpp b/lib/Frontend/InitHeaderSearch.cpp
index 6ea7ecb..b07dcc7 100644
--- a/lib/Frontend/InitHeaderSearch.cpp
+++ b/lib/Frontend/InitHeaderSearch.cpp
@@ -111,7 +111,7 @@
// Handle isysroot.
if (Group == System && !IgnoreSysRoot && MappedPath.isAbsolute() &&
- IncludeSysroot.isValid() && IncludeSysroot.isAbsolute() &&
+ IncludeSysroot.isValid() &&
IncludeSysroot != llvm::sys::Path::GetRootDirectory()) {
MappedPathStorage.clear();
MappedPathStr =