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.

llvm-svn: 120542
This commit is contained in:
Dan Gohman 2010-12-01 02:59:44 +00:00
parent 901d4d07d8
commit b16def2be9
1 changed files with 0 additions and 1 deletions

View 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 =