Hoist array bounds check in array_operation::evaluate
authorTom Tromey <tromey@adacore.com>
Mon, 28 Aug 2023 19:39:33 +0000 (13:39 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 29 Aug 2023 19:36:55 +0000 (13:36 -0600)
commit9c00ec6fe09c01df6d30fd67c3b12ee99394ee71
treea907fcbc2ed41111130901c6b6aa455a8d95423a
parent0f2d28db8e9c7a6b598370a2a93bcb9ae7f0df96
Hoist array bounds check in array_operation::evaluate

This hoists the array bounds check in array_operation::evaluate to
before the loop.

Reviewed-by: John Baldwin <jhb@FreeBSD.org>
Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/eval.c