[cfe-commits] r119139 - /cfe/trunk/lib/Frontend/InitHeaderSearch.cpp
Chandler Carruth
chandlerc at gmail.com
Mon Nov 15 01:28:24 PST 2010
Author: chandlerc
Date: Mon Nov 15 03:28:23 2010
New Revision: 119139
URL: http://llvm.org/viewvc/llvm-project?rev=119139&view=rev
Log:
Fix a think-o. Fixes PR8606.
Modified:
cfe/trunk/lib/Frontend/InitHeaderSearch.cpp
Modified: cfe/trunk/lib/Frontend/InitHeaderSearch.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitHeaderSearch.cpp?rev=119139&r1=119138&r2=119139&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/InitHeaderSearch.cpp (original)
+++ cfe/trunk/lib/Frontend/InitHeaderSearch.cpp Mon Nov 15 03:28:23 2010
@@ -113,6 +113,7 @@
if (Group == System && !IgnoreSysRoot && MappedPath.isAbsolute() &&
IncludeSysroot.isValid() && IncludeSysroot.isAbsolute() &&
IncludeSysroot != llvm::sys::Path::GetRootDirectory()) {
+ MappedPathStorage.clear();
MappedPathStr =
(IncludeSysroot.str() + Path).toStringRef(MappedPathStorage);
}
More information about the cfe-commits
mailing list