From 46c04ea32f7f259432a68b002a13cdea86f9f902 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 13 Mar 2023 11:09:08 -0600 Subject: Unify arch_boolean_type and init_boolean_type This unifies arch_boolean_type and init_boolean_type by using a type allocator. Reviewed-By: Simon Marchi --- gdb/d-lang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/d-lang.c') diff --git a/gdb/d-lang.c b/gdb/d-lang.c index 8e5262d..a970281 100644 --- a/gdb/d-lang.c +++ b/gdb/d-lang.c @@ -204,7 +204,7 @@ build_d_types (struct gdbarch *gdbarch) type_allocator alloc (gdbarch); builtin_d_type->builtin_void = builtin_type (gdbarch)->builtin_void; builtin_d_type->builtin_bool - = arch_boolean_type (gdbarch, 8, 1, "bool"); + = init_boolean_type (alloc, 8, 1, "bool"); builtin_d_type->builtin_byte = init_integer_type (alloc, 8, 0, "byte"); builtin_d_type->builtin_ubyte -- cgit v1.1