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/CommandObjectThread.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/CommandObjectThread.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectThread.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index edbec0e..bc1f5c3 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -622,7 +622,7 @@ protected: result.SetStatus(eReturnStatusSuccessContinuingNoResult); } } else { - result.SetError(new_plan_status); + result.SetError(std::move(new_plan_status)); } } @@ -1046,7 +1046,7 @@ protected: new_plan_sp->SetIsControllingPlan(true); new_plan_sp->SetOkayToDiscard(false); } else { - result.SetError(new_plan_status); + result.SetError(std::move(new_plan_status)); return; } } else { @@ -1734,7 +1734,7 @@ protected: Status err = thread->JumpToLine(file, line, m_options.m_force, &warnings); if (err.Fail()) { - result.SetError(err); + result.SetError(std::move(err)); return; } |