Skip to content

Commit 3b70267

Browse files
committed
Fix a think-o. Fixes PR8606.
llvm-svn: 119139
1 parent 8cb679e commit 3b70267

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Frontend/InitHeaderSearch.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ void InitHeaderSearch::AddPath(const llvm::Twine &Path,
113113
if (Group == System && !IgnoreSysRoot && MappedPath.isAbsolute() &&
114114
IncludeSysroot.isValid() && IncludeSysroot.isAbsolute() &&
115115
IncludeSysroot != llvm::sys::Path::GetRootDirectory()) {
116+
MappedPathStorage.clear();
116117
MappedPathStr =
117118
(IncludeSysroot.str() + Path).toStringRef(MappedPathStorage);
118119
}

0 commit comments

Comments
 (0)