]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Pass 'true' to set_is_argument
authorTom Tromey <tromey@adacore.com>
Thu, 2 Apr 2026 17:42:00 +0000 (11:42 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 2 Apr 2026 17:42:00 +0000 (11:42 -0600)
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.

gdb/dwarf2/read.c

index 8b87d58dd9c51898991e3d4755159d34dbde4f77..4d2f052debfa0346f591136cd3bc9436b830efde 100644 (file)
@@ -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)
              {