[Lldb-commits] [lldb] [lldb] Make deep copies of Status explicit (NFC) (PR #107170)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 5 01:51:31 PDT 2024


================
@@ -34,7 +34,7 @@ PythonObject SWIGBridge::ToSWIGWrapper(lldb::BreakpointSP breakpoint_sp) {
 }
 
 PythonObject SWIGBridge::ToSWIGWrapper(const Status& status) {
----------------
labath wrote:

Maybe take the object by value and then move it into SBError, so that the caller has a chance to avoid copies (I expect most of them will not want to retain the status object)?

https://github.com/llvm/llvm-project/pull/107170


More information about the lldb-commits mailing list