From 317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 31 Jan 2023 13:25:17 -0700 Subject: Turn allocate_value into a static "constructor" This changes allocate_value to be a static "constructor" of value. Approved-By: Simon Marchi --- gdb/infrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/infrun.c') diff --git a/gdb/infrun.c b/gdb/infrun.c index 9e2512e..acf9303 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -9197,7 +9197,7 @@ siginfo_make_value (struct gdbarch *gdbarch, struct internalvar *var, return allocate_computed_value (type, &siginfo_value_funcs, nullptr); } - return allocate_value (builtin_type (gdbarch)->builtin_void); + return value::allocate (builtin_type (gdbarch)->builtin_void); } -- cgit v1.1