aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/lib/Support/FileCollector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Support/FileCollector.cpp')
-rw-r--r--contrib/llvm-project/llvm/lib/Support/FileCollector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/Support/FileCollector.cpp b/contrib/llvm-project/llvm/lib/Support/FileCollector.cpp
index c0ce6b5d74e8..92bcdf00b8a8 100644
--- a/contrib/llvm-project/llvm/lib/Support/FileCollector.cpp
+++ b/contrib/llvm-project/llvm/lib/Support/FileCollector.cpp
@@ -71,7 +71,7 @@ void FileCollector::PathCanonicalizer::updateWithRealPath(
// cases? What if there is nothing on disk?
if (sys::fs::real_path(Directory, RealPath))
return;
- CachedDirs[Directory] = std::string(RealPath.str());
+ CachedDirs[Directory] = std::string(RealPath);
} else {
RealPath = DirWithSymlink->second;
}