diff --git a/lldb/source/Plugins/Process/Windows/Common/DebuggerThread.cpp b/lldb/source/Plugins/Process/Windows/Common/DebuggerThread.cpp index 9a5fcd88e12820..d62eb26ca1a293 100644 --- a/lldb/source/Plugins/Process/Windows/Common/DebuggerThread.cpp +++ b/lldb/source/Plugins/Process/Windows/Common/DebuggerThread.cpp @@ -75,7 +75,7 @@ Status DebuggerThread::DebugAttach(lldb::pid_t pid, return DebuggerThreadAttachRoutine(pid, attach_info); }); if (!secondary_thread) { - result = Status(secondary_thread.takeError()); + result = Status::FromError(secondary_thread.takeError()); LLDB_LOG(log, "couldn't attach to process '{0}'. {1}", pid, result); }