We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cb679e commit 3b70267Copy full SHA for 3b70267
clang/lib/Frontend/InitHeaderSearch.cpp
@@ -113,6 +113,7 @@ void InitHeaderSearch::AddPath(const llvm::Twine &Path,
113
if (Group == System && !IgnoreSysRoot && MappedPath.isAbsolute() &&
114
IncludeSysroot.isValid() && IncludeSysroot.isAbsolute() &&
115
IncludeSysroot != llvm::sys::Path::GetRootDirectory()) {
116
+ MappedPathStorage.clear();
117
MappedPathStr =
118
(IncludeSysroot.str() + Path).toStringRef(MappedPathStorage);
119
}
0 commit comments