diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-11-15 09:28:23 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-11-15 09:28:23 +0000 |
commit | 5619ae5d25dc77410a444c86606d4ec9bae8b921 (patch) | |
tree | e044f23b64f6f73fec48264647e7cd3774e1259a /lib/Frontend/InitHeaderSearch.cpp | |
parent | daa8e4e888758d55a7a759dd4a91b83921cef222 (diff) |
Fix a think-o. Fixes PR8606.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/InitHeaderSearch.cpp')
-rw-r--r-- | lib/Frontend/InitHeaderSearch.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Frontend/InitHeaderSearch.cpp b/lib/Frontend/InitHeaderSearch.cpp index 733adbf8b9..6ea7ecb870 100644 --- a/lib/Frontend/InitHeaderSearch.cpp +++ b/lib/Frontend/InitHeaderSearch.cpp @@ -113,6 +113,7 @@ void InitHeaderSearch::AddPath(const llvm::Twine &Path, if (Group == System && !IgnoreSysRoot && MappedPath.isAbsolute() && IncludeSysroot.isValid() && IncludeSysroot.isAbsolute() && IncludeSysroot != llvm::sys::Path::GetRootDirectory()) { + MappedPathStorage.clear(); MappedPathStr = (IncludeSysroot.str() + Path).toStringRef(MappedPathStorage); } |