mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-30 09:09:16 +08:00
Do not use std::move when assigning an anonymous object to a unique_ptr.
Using std::move forces an extra copy of the object. These changes fix -Wpessimizing-move warnings from clang. gdb/ChangeLog: * ada-lang.c (create_excep_cond_exprs): Do not use 'std::move'. * ax-gdb.c (agent_eval_command_one): Likewise. (agent_eval_command_one): Likewise. * breakpoint.c (parse_cond_to_aexpr): Likewise. (parse_cmd_to_aexpr): Likewise. * dtrace-probe.c (dtrace_process_dof_probe): Likewise. * parse.c (parse_expression_for_completion): Likewise.
This commit is contained in:
@ -430,8 +430,7 @@ dtrace_process_dof_probe (struct objfile *objfile,
|
||||
|
||||
TRY
|
||||
{
|
||||
expr = std::move (parse_expression_with_language (arg.type_str,
|
||||
language_c));
|
||||
expr = parse_expression_with_language (arg.type_str, language_c);
|
||||
}
|
||||
CATCH (ex, RETURN_MASK_ERROR)
|
||||
{
|
||||
|
Reference in New Issue
Block a user