diff options
author | Tom Tromey <tromey@adacore.com> | 2023-08-28 12:42:51 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-08-29 13:36:55 -0600 |
commit | 0f2d28db8e9c7a6b598370a2a93bcb9ae7f0df96 (patch) | |
tree | 9f0ac62e94667504e696d14468216ce169268efd /opcodes | |
parent | c73556cb0e6da3c2a4484975ee51e052a9be8b36 (diff) | |
download | gdb-0f2d28db8e9c7a6b598370a2a93bcb9ae7f0df96.zip gdb-0f2d28db8e9c7a6b598370a2a93bcb9ae7f0df96.tar.gz gdb-0f2d28db8e9c7a6b598370a2a93bcb9ae7f0df96.tar.bz2 |
Declare 'tem' in loop header in array_operation::evaluate
This changes array_operation::evaluate to declare the 'tem' variable
in the loop header, rather than at the top of the function. This is
cleaner and easier to reason about. I also changed 'nargs' to be
'const'.
Reviewed-by: John Baldwin <jhb@FreeBSD.org>
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'opcodes')
0 files changed, 0 insertions, 0 deletions