Do not use std::move when assigning an anonymous object to a unique_ptr.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 24 Nov 2016 20:01:24 +0000 (12:01 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 24 Nov 2016 20:01:24 +0000 (12:01 -0800)
commit036e657b48144d7449ddfcfcf9214bcd7bcf268b
tree7f66ff5f93da7217b96a287d143318f985d70de7
parentbbe910e6e1140cb484a74911f3cea854cf9e7e2a
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.
gdb/ChangeLog
gdb/ada-lang.c
gdb/ax-gdb.c
gdb/breakpoint.c
gdb/dtrace-probe.c
gdb/parse.c