aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-09-04 20:21:14 +0100
committerPedro Alves <palves@redhat.com>2017-09-04 20:21:14 +0100
commitd008ee21562d9f823b3d081b9b60e86509a5e85a (patch)
tree01f6857567517dba622624f287ef83654a66ff1b /gdb/eval.c
parent827d0c517e2000102ac7d457109baa63e085c435 (diff)
downloadgdb-d008ee21562d9f823b3d081b9b60e86509a5e85a.zip
gdb-d008ee21562d9f823b3d081b9b60e86509a5e85a.tar.gz
gdb-d008ee21562d9f823b3d081b9b60e86509a5e85a.tar.bz2
evaluate_subexp_standard: Remove useless assignments
gdb/ChangeLog: 2017-09-04 Pedro Alves <palves@redhat.com> * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>: Remove useless assignments to 'op'.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index 639e06e..cb41a4a 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -2493,7 +2493,6 @@ evaluate_subexp_standard (struct type *expect_type,
case UNOP_COMPLEMENT:
/* C++: check for and handle destructor names. */
- op = exp->elts[*pos].opcode;
arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside);
if (noside == EVAL_SKIP)
@@ -2561,8 +2560,6 @@ evaluate_subexp_standard (struct type *expect_type,
case UNOP_ADDR:
/* C++: check for and handle pointer to members. */
- op = exp->elts[*pos].opcode;
-
if (noside == EVAL_SKIP)
{
evaluate_subexp (NULL_TYPE, exp, pos, EVAL_SKIP);