From: Tom Tromey Date: Tue, 29 Aug 2023 15:18:42 +0000 (-0600) Subject: More renames in array_operation::evaluate X-Git-Tag: gdb-14-branchpoint~408 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2922821e4fe3e3e9e496c50cd0c9aa1b1eecc967;p=thirdparty%2Fbinutils-gdb.git 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 Approved-By: Simon Marchi --- diff --git a/gdb/eval.c b/gdb/eval.c index 7c955a4e9eb..81b7aa0cb99 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -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 &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 *