aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-10-17 12:46:21 -0600
committerTom Tromey <tromey@adacore.com>2022-10-17 12:59:10 -0600
commit069355439fca1702c2440678663d1d0d40bbb735 (patch)
tree70dde9d409b8e9a6c633a4a58af1577584936263
parent39e9d8670cea9d3d2959387b6d51050b0716eb19 (diff)
downloadbinutils-069355439fca1702c2440678663d1d0d40bbb735.zip
binutils-069355439fca1702c2440678663d1d0d40bbb735.tar.gz
binutils-069355439fca1702c2440678663d1d0d40bbb735.tar.bz2
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.
-rw-r--r--gdb/dwarf2/read.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 33dfd52..b5efcb3 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)