diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 13:25:17 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:07 -0700 |
commit | 317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced (patch) | |
tree | 20bca3a06c842e4eed5101debd1f672539e87714 /gdb/infcall.c | |
parent | cbe793af8831a7244de326d6b07c60c197f096a2 (diff) | |
download | binutils-gdb-317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced.tar.gz |
Turn allocate_value into a static "constructor"
This changes allocate_value to be a static "constructor" of value.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r-- | gdb/infcall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c index 3e0da94ab17..05ae1638857 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -466,7 +466,7 @@ get_call_return_value (struct call_return_meta_info *ri) bool stack_temporaries = thread_stack_temporaries_enabled_p (thr); if (ri->value_type->code () == TYPE_CODE_VOID) - retval = allocate_value (ri->value_type); + retval = value::allocate (ri->value_type); else if (ri->struct_return_p) { if (stack_temporaries) |