]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove a check of VAR_DOMAIN
authorTom Tromey <tom@tromey.com>
Sat, 11 Mar 2023 05:16:51 +0000 (22:16 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 28 Jan 2024 17:58:16 +0000 (10:58 -0700)
commit8370bcc7b7b966ea86a7c87ba1549e607da7ac25
treecf5256dd51ae09cd00d8aa3a645e4abaa4d49a2a
parentc92d4de16a0650ae973cfecf9c563893757a01f1
Remove a check of VAR_DOMAIN

completion_list_add_symbol checks that the returned symbol has
VAR_DOMAIN, but also checks that its address class is LOC_BLOCK.  The
domain check is redundant -- only functions can possibly be LOC_BLOCK
-- and leaving this in place will cause a regression when combined
with a later patch in this series.  This patch preemptively removes
the redundant check.
gdb/symtab.c