From: Dan Gohman Date: Wed, 1 Dec 2010 02:59:44 +0000 (+0000) Subject: Don't check the isysroot path for Path::isValid(); if the user has X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a24341a121e3e004e322ff74301c7ba29b10488;p=clang Don't check the isysroot path for Path::isValid(); if the user has 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 --- diff --git a/lib/Frontend/InitHeaderSearch.cpp b/lib/Frontend/InitHeaderSearch.cpp index 9df1e02a1b..438556e8da 100644 --- a/lib/Frontend/InitHeaderSearch.cpp +++ b/lib/Frontend/InitHeaderSearch.cpp @@ -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 =