[lldb] FixFileSystem::GetExternalPath for VFS API change

This commit is contained in:
Jonas Devlieghere
2021-01-22 15:04:11 -08:00
parent 6ef95056b9
commit 3a50ed84f4

View 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();