diff options
Diffstat (limited to 'clang/lib/Frontend/ModuleDependencyCollector.cpp')
-rw-r--r-- | clang/lib/Frontend/ModuleDependencyCollector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/ModuleDependencyCollector.cpp b/clang/lib/Frontend/ModuleDependencyCollector.cpp index fd22433d31bd..b54eb97d6c47 100644 --- a/clang/lib/Frontend/ModuleDependencyCollector.cpp +++ b/clang/lib/Frontend/ModuleDependencyCollector.cpp @@ -170,7 +170,7 @@ bool ModuleDependencyCollector::getRealPath(StringRef SrcPath, if (DirWithSymLink == SymLinkMap.end()) { if (llvm::sys::fs::real_path(Dir, RealPath)) return false; - SymLinkMap[Dir] = RealPath.str(); + SymLinkMap[Dir] = std::string(RealPath.str()); } else { RealPath = DirWithSymLink->second; } |