From: Chandler Carruth Date: Tue, 16 Nov 2010 11:30:11 +0000 (+0000) Subject: Remove an unintended restriction on sysroots introduced during the Path X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c1a1ef39d6768289a90be94a9e706fda59582be;p=clang Remove an unintended restriction on sysroots introduced during the Path conversion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119346 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/InitHeaderSearch.cpp b/lib/Frontend/InitHeaderSearch.cpp index 6ea7ecb870..b07dcc7c37 100644 --- a/lib/Frontend/InitHeaderSearch.cpp +++ b/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 =