From 5619ae5d25dc77410a444c86606d4ec9bae8b921 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Mon, 15 Nov 2010 09:28:23 +0000 Subject: [PATCH] Fix a think-o. Fixes PR8606. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119139 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Frontend/InitHeaderSearch.cpp | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.40.0