Simplify checks of cooked_index
authorTom Tromey <tom@tromey.com>
Wed, 1 Feb 2023 18:43:02 +0000 (11:43 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 8 Feb 2023 13:44:59 +0000 (06:44 -0700)
commit1947a4a4bb7651a4656edceb1f9b246f96f89ebd
treec73d970e46d15b1aa1c59c16b09b77994f549062
parent4e315cd4af3bee733608990ddd6cfc0941a8b1ec
Simplify checks of cooked_index

This changes the cooked_index_functions to avoid an extra null check
now that checked_static_cast allows a null argument.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/dwarf2/read.c