mirror of
https://github.com/intel/llvm.git
synced 2026-02-07 07:39:11 +08:00
[lldb] Make deep copies of Status explicit (NFC) (#107170)
This commit is contained in:
@@ -1369,7 +1369,7 @@ SBTarget::WatchpointCreateByAddress(lldb::addr_t addr, size_t size,
|
||||
CompilerType *type = nullptr;
|
||||
watchpoint_sp =
|
||||
target_sp->CreateWatchpoint(addr, size, type, watch_type, cw_error);
|
||||
error.SetError(cw_error);
|
||||
error.SetError(std::move(cw_error));
|
||||
sb_watchpoint.SetSP(watchpoint_sp);
|
||||
}
|
||||
|
||||
@@ -2326,7 +2326,8 @@ lldb::SBValue SBTarget::EvaluateExpression(const char *expr,
|
||||
Status error;
|
||||
error = Status::FromErrorString("can't evaluate expressions when the "
|
||||
"process is running.");
|
||||
expr_value_sp = ValueObjectConstResult::Create(nullptr, error);
|
||||
expr_value_sp =
|
||||
ValueObjectConstResult::Create(nullptr, std::move(error));
|
||||
}
|
||||
} else {
|
||||
target->EvaluateExpression(expr, frame, expr_value_sp, options.ref());
|
||||
|
||||
Reference in New Issue
Block a user