[binutils-gdb] Pass 'true' to set_is_argument
Tom Tromey via Gdb-cvs <[email protected]>
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=51308ff6a04565df30ff8a0c719ac1c1ed369f8b commit 51308ff6a04565df30ff8a0c719ac1c1ed369f8b Author: Tom Tromey <[email protected]> Date: Thu Apr 2 11:42:00 2026 -0600 Pass 'true' to set_is_argument I noticed that set_is_argument accepts a bool but the one caller of it passes the constant '1'. This patch changes it to use 'true' instead. Diff: --- gdb/dwarf2/read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 8b87d58dd9c..4d2f052debf 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -15762,7 +15762,7 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu, struct context_stack *curr = cu->get_builder ()->get_current_context_stack (); if (curr != nullptr && curr->name != nullptr) - sym->set_is_argument (1); + sym->set_is_argument (true); attr = dwarf2_attr (die, DW_AT_location, cu); if (attr != nullptr) {