[lldb] FixFileSystem::GetExternalPath for VFS API change
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 22 Jan 2021 23:04:11 +0000 (15:04 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 22 Jan 2021 23:04:17 +0000 (15:04 -0800)
lldb/source/Host/common/FileSystem.cpp

index 8a6c03f..9fa8854 100644 (file)
@@ -479,7 +479,7 @@ ErrorOr<std::string> FileSystem::GetExternalPath(const llvm::Twine &path) {
 
   // If VFS mapped we know the underlying FS is a RedirectingFileSystem.
   ErrorOr<vfs::RedirectingFileSystem::Entry *> E =
-      static_cast<vfs::RedirectingFileSystem &>(*m_fs).lookupPath(path);
+      static_cast<vfs::RedirectingFileSystem &>(*m_fs).lookupPath(path.str());
   if (!E) {
     if (E.getError() == llvm::errc::no_such_file_or_directory) {
       return path.str();