diff --git a/lldb/source/Host/common/FileSystem.cpp b/lldb/source/Host/common/FileSystem.cpp index 8a6c03f72b6f..9fa8854d950e 100644 --- a/lldb/source/Host/common/FileSystem.cpp +++ b/lldb/source/Host/common/FileSystem.cpp @@ -479,7 +479,7 @@ ErrorOr FileSystem::GetExternalPath(const llvm::Twine &path) { // If VFS mapped we know the underlying FS is a RedirectingFileSystem. ErrorOr E = - static_cast(*m_fs).lookupPath(path); + static_cast(*m_fs).lookupPath(path.str()); if (!E) { if (E.getError() == llvm::errc::no_such_file_or_directory) { return path.str();