diff options
author | Dan Gohman <gohman@apple.com> | 2010-12-01 02:59:44 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-12-01 02:59:44 +0000 |
commit | 8a24341a121e3e004e322ff74301c7ba29b10488 (patch) | |
tree | 128e67f3d1866547e9516c91632bf9d4dd8df964 /lib/Frontend | |
parent | 94cd011edcffdabd3cbc520830ccf8e793e08b62 (diff) |
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
Diffstat (limited to 'lib/Frontend')
-rw-r--r-- | lib/Frontend/InitHeaderSearch.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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 = |