diff options
author | Adrian Prantl <aprantl@apple.com> | 2024-09-05 12:19:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-05 12:19:31 -0700 |
commit | a0dd90eb7dc318c9b3fccb9ba02e1e22fb073094 (patch) | |
tree | f03fbc20be24f82712bceb984e1a2a0afe528bf9 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
parent | 5e1e6a689c82aaf2b7af72e074c95889a11d3a78 (diff) | |
download | llvm-a0dd90eb7dc318c9b3fccb9ba02e1e22fb073094.zip llvm-a0dd90eb7dc318c9b3fccb9ba02e1e22fb073094.tar.gz llvm-a0dd90eb7dc318c9b3fccb9ba02e1e22fb073094.tar.bz2 |
[lldb] Make conversions from llvm::Error explicit with Status::FromEr… (#107163)
…ror() [NFC]
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index 76f2640..63691d2 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -1110,7 +1110,7 @@ Status ScriptInterpreterPythonImpl::ExecuteMultipleLines( options.GetEnableIO(), m_debugger, /*result=*/nullptr); if (!io_redirect_or_error) - return Status(io_redirect_or_error.takeError()); + return Status::FromError(io_redirect_or_error.takeError()); ScriptInterpreterIORedirect &io_redirect = **io_redirect_or_error; @@ -1144,7 +1144,7 @@ Status ScriptInterpreterPythonImpl::ExecuteMultipleLines( E.Restore(); return error; }); - return Status(std::move(error)); + return Status::FromError(std::move(error)); } return Status(); @@ -2393,7 +2393,7 @@ bool ScriptInterpreterPythonImpl::LoadScriptingModule( exc_options.GetEnableIO(), m_debugger, /*result=*/nullptr); if (!io_redirect_or_error) { - error = io_redirect_or_error.takeError(); + error = Status::FromError(io_redirect_or_error.takeError()); return false; } @@ -2435,7 +2435,7 @@ bool ScriptInterpreterPythonImpl::LoadScriptingModule( if (extra_search_dir) { if (llvm::Error e = ExtendSysPath(extra_search_dir.GetPath())) { - error = std::move(e); + error = Status::FromError(std::move(e)); return false; } } else { @@ -2465,7 +2465,7 @@ bool ScriptInterpreterPythonImpl::LoadScriptingModule( } if (llvm::Error e = ExtendSysPath(module_file.GetDirectory().GetCString())) { - error = std::move(e); + error = Status::FromError(std::move(e)); return false; } module_name = module_file.GetFilename().GetCString(); |