summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-11-16 11:30:11 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-11-16 11:30:11 +0000
commit40c98640e17cc2a3a636ac14d860995a93896861 (patch)
tree8f63566504df89beab96eb6a4baf5035b2b6e7aa /clang/lib
parentb19289331daac36ff1fb45a12d75915f160a9891 (diff)
downloadbcm5719-llvm-40c98640e17cc2a3a636ac14d860995a93896861.tar.gz
bcm5719-llvm-40c98640e17cc2a3a636ac14d860995a93896861.zip
Remove an unintended restriction on sysroots introduced during the Path
conversion. llvm-svn: 119346
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Frontend/InitHeaderSearch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/InitHeaderSearch.cpp b/clang/lib/Frontend/InitHeaderSearch.cpp
index 6ea7ecb8703..b07dcc7c376 100644
--- a/clang/lib/Frontend/InitHeaderSearch.cpp
+++ b/clang/lib/Frontend/InitHeaderSearch.cpp
@@ -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 =
OpenPOWER on IntegriCloud