[Lldb-commits] [lldb] [NFC][LLDB] Remove CommandObjectTraceStartIntelPT.cpp call to protected Status Constructor (PR #108248)
Jacob Lalonde via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 11 09:57:05 PDT 2024
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/108248
>From c13cca79b5b90a858fe32b4ee490189c10fcd7c9 Mon Sep 17 00:00:00 2001
From: Jacob Lalonde <jalalonde at fb.com>
Date: Wed, 11 Sep 2024 09:46:02 -0700
Subject: [PATCH] Remove CommandObjectTraceStartIntelPT.cpp call to Status()
constructed and instead move err
---
.../Plugins/Trace/intel-pt/CommandObjectTraceStartIntelPT.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lldb/source/Plugins/Trace/intel-pt/CommandObjectTraceStartIntelPT.cpp b/lldb/source/Plugins/Trace/intel-pt/CommandObjectTraceStartIntelPT.cpp
index 81f7c228561a6d..ea28c3251d7472 100644
--- a/lldb/source/Plugins/Trace/intel-pt/CommandObjectTraceStartIntelPT.cpp
+++ b/lldb/source/Plugins/Trace/intel-pt/CommandObjectTraceStartIntelPT.cpp
@@ -78,7 +78,7 @@ bool CommandObjectThreadTraceStartIntelPT::DoExecuteOnThreads(
llvm::ArrayRef<lldb::tid_t> tids) {
if (Error err = m_trace.Start(tids, m_options.m_ipt_trace_size,
m_options.m_enable_tsc, m_options.m_psb_period))
- result.SetError(Status(std::move(err)));
+ result.SetError(std::move(err));
else
result.SetStatus(eReturnStatusSuccessFinishResult);
@@ -164,7 +164,7 @@ void CommandObjectProcessTraceStartIntelPT::DoExecute(
m_options.m_ipt_trace_size, m_options.m_process_buffer_size_limit,
m_options.m_enable_tsc, m_options.m_psb_period,
m_options.m_per_cpu_tracing, m_options.m_disable_cgroup_filtering))
- result.SetError(Status(std::move(err)));
+ result.SetError(std::move(err));
else
result.SetStatus(eReturnStatusSuccessFinishResult);
}
More information about the lldb-commits
mailing list