From b27556e3c10e197cc31021649a6113bb305b970e Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 31 Jan 2023 13:30:54 -0700 Subject: Turn allocate_optimized_out_value into static "constructor" This turns allocate_optimized_out_value into a static "constructor" of value. Approved-By: Simon Marchi --- gdb/findvar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/findvar.c') diff --git a/gdb/findvar.c b/gdb/findvar.c index b59962c..048e439 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -769,7 +769,7 @@ language_defn::read_var_value (struct symbol *var, case LOC_OPTIMIZED_OUT: if (is_dynamic_type (type)) type = resolve_dynamic_type (type, {}, /* Unused address. */ 0); - return allocate_optimized_out_value (type); + return value::allocate_optimized_out (type); default: error (_("Cannot look up value of a botched symbol `%s'."), -- cgit v1.1