From d008ee21562d9f823b3d081b9b60e86509a5e85a Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 4 Sep 2017 20:21:14 +0100 Subject: [PATCH] evaluate_subexp_standard: Remove useless assignments gdb/ChangeLog: 2017-09-04 Pedro Alves * eval.c (evaluate_subexp_standard) : Remove useless assignments to 'op'. --- gdb/ChangeLog | 5 +++++ gdb/eval.c | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 28583984336..2f0e8ddba3b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-09-04 Pedro Alves + + * eval.c (evaluate_subexp_standard) : + Remove useless assignments to 'op'. + 2017-09-04 Pedro Alves * eval.c (eval_skip_value): New function. diff --git a/gdb/eval.c b/gdb/eval.c index 639e06e292d..cb41a4a03ed 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); -- 2.30.2