Use block::is_static_block in ada-lang.c

This changes one spot in ada-lang.c to use block::is_static_block
rather than a hand-rolled implementation.  Note this also fixes the
call -- what is currently written there is wrong.

Approved-By: Tom de Vries <tdevries@suse.de>
This commit is contained in:
Tom Tromey
2024-12-07 17:28:30 -07:00
parent cd676397e5
commit 66834f8da9

View File

@@ -13637,7 +13637,7 @@ public:
for (b = get_selected_block (0); b != NULL; b = b->superblock ())
{
if (!b->superblock ())
if (b->is_static_block ())
surrounding_static_block = b; /* For elmin of dups */
for (struct symbol *sym : block_iterator_range (b))