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/c-lang.c | |
parent | cbe793af8831a7244de326d6b07c60c197f096a2 (diff) | |
download | gdb-317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced.zip gdb-317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced.tar.gz gdb-317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced.tar.bz2 |
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/c-lang.c')
-rw-r--r-- | gdb/c-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/c-lang.c b/gdb/c-lang.c index a2c50c3..2559018 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -673,7 +673,7 @@ c_string_operation::evaluate (struct type *expect_type, > (high_bound - low_bound + 1)) error (_("Too many array elements")); - result = allocate_value (expect_type); + result = value::allocate (expect_type); memcpy (value_contents_raw (result).data (), obstack_base (&output), obstack_object_size (&output)); } |