projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39e9d86
)
Remove a nullptr check in DWARF scanner
author
Tom Tromey
<tromey@adacore.com>
Mon, 17 Oct 2022 18:46:21 +0000
(12:46 -0600)
committer
Tom Tromey
<tromey@adacore.com>
Mon, 17 Oct 2022 18:59:10 +0000
(12:59 -0600)
In scan_attributes, The DWARF scanner checks whether maybe_defer is
nullptr, but this can never happen. This patch removes the check.
gdb/dwarf2/read.c
patch
|
blob
|
history
diff --git
a/gdb/dwarf2/read.c
b/gdb/dwarf2/read.c
index 33dfd52b362941d609ee94fdbe95b69da69e1a65..b5efcb3cc097e64722ae71491ee9139ba3049763 100644
(file)
--- 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)