[lldb] Make deep copies of Status explicit (NFC) (#107170)

This commit is contained in:
Adrian Prantl
2024-09-05 12:44:13 -07:00
committed by GitHub
parent 53d5ffea6b
commit b798f4bd50
57 changed files with 172 additions and 141 deletions

View File

@@ -1450,7 +1450,7 @@ lldb::SBError SBProcess::DeallocateMemory(lldb::addr_t ptr) {
std::lock_guard<std::recursive_mutex> guard(
process_sp->GetTarget().GetAPIMutex());
Status error = process_sp->DeallocateMemory(ptr);
sb_error.SetError(error);
sb_error.SetError(std::move(error));
} else {
sb_error = Status::FromErrorString("process is running");
}