diff options
author | Tom Tromey <tromey@adacore.com> | 2023-08-29 09:18:42 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-08-29 13:36:55 -0600 |
commit | 2922821e4fe3e3e9e496c50cd0c9aa1b1eecc967 (patch) | |
tree | 8a5935dda46b4b4532decec51a8cb33e215b258a /gdb/eval.c | |
parent | b47331bf901065e051d6490105a61e677cafc451 (diff) | |
download | gdb-2922821e4fe3e3e9e496c50cd0c9aa1b1eecc967.zip gdb-2922821e4fe3e3e9e496c50cd0c9aa1b1eecc967.tar.gz gdb-2922821e4fe3e3e9e496c50cd0c9aa1b1eecc967.tar.bz2 |
More renames in array_operation::evaluate
array_operation::evaluate has variables named "tem2" and "tem3". This
patch replaces one with a better name, and entirely removes the other.
Reviewed-by: John Baldwin <jhb@FreeBSD.org>
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/eval.c')
-rw-r--r-- | gdb/eval.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -2397,10 +2397,9 @@ array_operation::evaluate (struct type *expect_type, struct expression *exp, enum noside noside) { - int tem2 = std::get<0> (m_storage); - int tem3 = std::get<1> (m_storage); + const int provided_low_bound = std::get<0> (m_storage); const std::vector<operation_up> &in_args = std::get<2> (m_storage); - const int nargs = tem3 - tem2 + 1; + const int nargs = std::get<1> (m_storage) - provided_low_bound + 1; struct type *type = expect_type ? check_typedef (expect_type) : nullptr; if (expect_type != nullptr @@ -2515,7 +2514,7 @@ array_operation::evaluate (struct type *expect_type, objects. */ argvec[tem] = in_args[tem]->evaluate_with_coercion (exp, noside); } - return value_array (tem2, argvec); + return value_array (provided_low_bound, argvec); } value * |