From: Tom Tromey Date: Mon, 17 Oct 2022 18:46:21 +0000 (-0600) Subject: Remove a nullptr check in DWARF scanner X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=069355439fca1702c2440678663d1d0d40bbb735;p=binutils-gdb.git Remove a nullptr check in DWARF scanner In scan_attributes, The DWARF scanner checks whether maybe_defer is nullptr, but this can never happen. This patch removes the check. --- diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 33dfd52b362..b5efcb3cc09 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -18217,7 +18217,6 @@ cooked_indexer::scan_attributes (dwarf2_per_cu_data *scanning_per_cu, if (new_reader->cu == reader->cu && new_info_ptr > watermark_ptr - && maybe_defer != nullptr && *parent_entry == nullptr) *maybe_defer = form_addr (origin_offset, origin_is_dwz); else if (*parent_entry == nullptr)