]> granicus.if.org Git - clang/commitdiff
Don't check the isysroot path for Path::isValid(); if the user has
authorDan Gohman <gohman@apple.com>
Wed, 1 Dec 2010 02:59:44 +0000 (02:59 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 1 Dec 2010 02:59:44 +0000 (02:59 +0000)
specified a syntactically invalid path, it's better to let the OS
diagnose the problem than to silently skip it.

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

lib/Frontend/InitHeaderSearch.cpp

index 9df1e02a1b88a03d29e3bba05b0f2f2a80ff491f..438556e8da6708e08a31250a9d78d912e3ffb626 100644 (file)
@@ -110,7 +110,6 @@ void InitHeaderSearch::AddPath(const llvm::Twine &Path,
 
   // Handle isysroot.
   if (Group == System && !IgnoreSysRoot && MappedPath.isAbsolute() &&
-      IncludeSysroot.isValid() &&
       IncludeSysroot != llvm::sys::Path::GetRootDirectory()) {
     MappedPathStorage.clear();
     MappedPathStr =