[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


================
@@ -109,6 +109,13 @@ llvm::Error Status::ToError() const {
 
 Status::~Status() = default;
 
+const Status &Status::operator=(Status &&other) {
+  m_code = other.m_code;
+  m_type = other.m_type;
+  m_string = other.m_string;
----------------
labath wrote:

`std::move(other.m_string)` ?

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


More information about the lldb-commits mailing list