diff options
Diffstat (limited to 'lib/Frontend/ModuleDependencyCollector.cpp')
| -rw-r--r-- | lib/Frontend/ModuleDependencyCollector.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/Frontend/ModuleDependencyCollector.cpp b/lib/Frontend/ModuleDependencyCollector.cpp index 62865e984f65..67852dc02036 100644 --- a/lib/Frontend/ModuleDependencyCollector.cpp +++ b/lib/Frontend/ModuleDependencyCollector.cpp @@ -77,10 +77,10 @@ std::error_code ModuleDependencyListener::copyToRoot(StringRef Src) {    if (std::error_code EC = fs::create_directories(path::parent_path(Dest),                                                     /*IgnoreExisting=*/true))      return EC; -  if (std::error_code EC = fs::copy_file(AbsoluteSrc.str(), Dest.str())) +  if (std::error_code EC = fs::copy_file(AbsoluteSrc, Dest))      return EC;    // Use the absolute path under the root for the file mapping. -  Collector.addFileMapping(AbsoluteSrc.str(), Dest.str()); +  Collector.addFileMapping(AbsoluteSrc, Dest);    return std::error_code();  } | 
