aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 13:24:00 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:21:07 -0700
commitcbe793af8831a7244de326d6b07c60c197f096a2 (patch)
treeebdab02eb11031a7b713952444ea5a7257a523d6 /gdb/ada-lang.c
parentf29de665046c1b1a2feabf8d3d584b3b89699e10 (diff)
downloadgdb-cbe793af8831a7244de326d6b07c60c197f096a2.zip
gdb-cbe793af8831a7244de326d6b07c60c197f096a2.tar.gz
gdb-cbe793af8831a7244de326d6b07c60c197f096a2.tar.bz2
Turn allocate_value_lazy into a static "constructor"
This changes allocate_value_lazy to be a static "constructor" of struct value. I considered trying to change value to use ordinary new/delete, but it seems to me that due to reference counting, we may someday want to change these static constructors to return value_ref_ptr instead. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index e13359a..ae2f4df 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -561,7 +561,7 @@ coerce_unspec_val_to_type (struct value *val, struct type *type)
/* Be careful not to make a lazy not_lval value. */
|| (VALUE_LVAL (val) != not_lval
&& type->length () > val->type ()->length ()))
- result = allocate_value_lazy (type);
+ result = value::allocate_lazy (type);
else
{
result = allocate_value (type);