diff options
author | Adrian Prantl <aprantl@apple.com> | 2024-10-02 09:11:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-02 09:11:47 -0700 |
commit | 8789c96698e027b0dd40b6e0475181505d6b8984 (patch) | |
tree | 18ff1887f07585e3d91bf9bfcf3458f2e0d6c071 /lldb/source/Commands/CommandObjectTarget.cpp | |
parent | b50ce4c81e71855bc01b9564d3bd239437847184 (diff) | |
download | llvm-8789c96698e027b0dd40b6e0475181505d6b8984.zip llvm-8789c96698e027b0dd40b6e0475181505d6b8984.tar.gz llvm-8789c96698e027b0dd40b6e0475181505d6b8984.tar.bz2 |
[lldb] Unify implementation of CommandReturnObject::SetError(NFC) (#110707)
This is a cleanup that moves the API towards value semantics.
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectTarget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp index 10e761f..e950fb3 100644 --- a/lldb/source/Commands/CommandObjectTarget.cpp +++ b/lldb/source/Commands/CommandObjectTarget.cpp @@ -2775,7 +2775,7 @@ protected: result.AppendErrorWithFormat( "Unable to locate the executable or symbol file with UUID %s", strm.GetData()); - result.SetError(error); + result.SetError(std::move(error)); return; } } else { @@ -4409,7 +4409,7 @@ protected: return AddModuleSymbols(m_exe_ctx.GetTargetPtr(), module_spec, flush, result); } else { - result.SetError(error); + result.SetError(std::move(error)); } return false; } |