]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Rename some locals in objc_msgcall_operation::evaluate
authorTom Tromey <tromey@adacore.com>
Fri, 14 Nov 2025 20:44:22 +0000 (13:44 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 1 Dec 2025 19:36:35 +0000 (12:36 -0700)
This renames a couple of local variables in
objc_msgcall_operation::evaluate, in preparation for the next patch.
This is done separately because the next patch is pretty messy and
this makes it a little simpler.

gdb/eval.c

index a2da901877fbdc3f1b3e3e4a07585f0287db945b..d41f9a63831a5c2935b2cdaca6d8d43818456d22 100644 (file)
@@ -2239,15 +2239,15 @@ objc_msgcall_operation::evaluate (struct type *expect_type,
   else
     sub_no_side = noside;
 
-  std::vector<operation_up> &args = std::get<2> (m_storage);
-  std::vector<value *> argvec;
-  argvec.push_back (nullptr);
-  argvec.push_back (nullptr);
-  for (const operation_up &iter : args)
-    argvec.push_back (iter->evaluate_with_coercion (exp, sub_no_side));
+  std::vector<operation_up> &ops = std::get<2> (m_storage);
+  std::vector<value *> args;
+  args.push_back (nullptr);
+  args.push_back (nullptr);
+  for (const operation_up &iter : ops)
+    args.push_back (iter->evaluate_with_coercion (exp, sub_no_side));
 
   return eval_op_objc_msgcall (expect_type, exp, noside,
-                              std::get<0> (m_storage), target, argvec);
+                              std::get<0> (m_storage), target, args);
 }
 
 value *