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/Interpreter | |
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/Interpreter')
-rw-r--r-- | lldb/source/Interpreter/CommandObject.cpp | 2 | ||||
-rw-r--r-- | lldb/source/Interpreter/OptionValueRegex.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp index c819024..cf2682c 100644 --- a/lldb/source/Interpreter/CommandObject.cpp +++ b/lldb/source/Interpreter/CommandObject.cpp @@ -121,7 +121,7 @@ bool CommandObject::ParseOptions(Args &args, CommandReturnObject &result) { args = std::move(*args_or); error = options->NotifyOptionParsingFinished(&exe_ctx); } else - error = args_or.takeError(); + error = Status::FromError(args_or.takeError()); if (error.Success()) { if (options->VerifyOptions(result)) diff --git a/lldb/source/Interpreter/OptionValueRegex.cpp b/lldb/source/Interpreter/OptionValueRegex.cpp index d810df5..91ec41d 100644 --- a/lldb/source/Interpreter/OptionValueRegex.cpp +++ b/lldb/source/Interpreter/OptionValueRegex.cpp @@ -51,7 +51,7 @@ Status OptionValueRegex::SetValueFromString(llvm::StringRef value, m_value_was_set = true; NotifyValueChanged(); } else if (llvm::Error err = m_regex.GetError()) { - return Status(std::move(err)); + return Status::FromError(std::move(err)); } else { return Status::FromErrorString("regex error"); } |