aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2024-10-02 09:11:47 -0700
committerGitHub <noreply@github.com>2024-10-02 09:11:47 -0700
commit8789c96698e027b0dd40b6e0475181505d6b8984 (patch)
tree18ff1887f07585e3d91bf9bfcf3458f2e0d6c071 /lldb/source/Commands/CommandObjectBreakpointCommand.cpp
parentb50ce4c81e71855bc01b9564d3bd239437847184 (diff)
downloadllvm-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/CommandObjectBreakpointCommand.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpointCommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
index b668cd0..ac2db59 100644
--- a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
@@ -389,7 +389,7 @@ protected:
m_bp_options_vec, result);
}
if (!error.Success())
- result.SetError(error);
+ result.SetError(std::move(error));
} else {
// Special handling for one-liner specified inline.
if (m_options.m_use_one_liner)