[Lldb-commits] [PATCH] D126402: Fix conversion error to Expected
Thomas Preud'homme via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed May 25 12:51:19 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8e757c6b500d: Fix conversion error to Expected (authored by thopre).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126402/new/
https://reviews.llvm.org/D126402
Files:
lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp
lldb/source/Plugins/Process/Linux/IntelPTSingleBufferTrace.cpp
Index: lldb/source/Plugins/Process/Linux/IntelPTSingleBufferTrace.cpp
===================================================================
--- lldb/source/Plugins/Process/Linux/IntelPTSingleBufferTrace.cpp
+++ lldb/source/Plugins/Process/Linux/IntelPTSingleBufferTrace.cpp
@@ -318,7 +318,7 @@
}
IntelPTSingleBufferTraceUP trace_up(
new IntelPTSingleBufferTrace(std::move(*perf_event), initial_state));
- return trace_up;
+ return std::move(trace_up);
} else {
return perf_event.takeError();
}
Index: lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp
===================================================================
--- lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp
+++ lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp
@@ -78,7 +78,7 @@
error = joinErrors(std::move(error), trace->TraceStart(tid));
if (error)
return std::move(error);
- return trace;
+ return std::move(trace);
}
Error IntelPTCollector::TraceStart(const TraceIntelPTStartRequest &request) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126402.432092.patch
Type: text/x-patch
Size: 1034 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220525/127bfee9/attachment.bin>
More information about the lldb-commits
mailing list