]> granicus.if.org Git - clang/commitdiff
Remove an unintended restriction on sysroots introduced during the Path
authorChandler Carruth <chandlerc@gmail.com>
Tue, 16 Nov 2010 11:30:11 +0000 (11:30 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 16 Nov 2010 11:30:11 +0000 (11:30 +0000)
conversion.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119346 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/InitHeaderSearch.cpp

index 6ea7ecb8703e965a948d85f4f49fd9748667eed1..b07dcc7c376f72b0e7998cb2f098c7f640a31df9 100644 (file)
@@ -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 =