aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/expr.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 13:29:49 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:21:07 -0700
commitb64e260290108f8eb4f7a75f80a8355448aef7e4 (patch)
tree858622f385f161e426e6087407c80a0978bc3052 /gdb/dwarf2/expr.c
parent317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced (diff)
downloadbinutils-b64e260290108f8eb4f7a75f80a8355448aef7e4.zip
binutils-b64e260290108f8eb4f7a75f80a8355448aef7e4.tar.gz
binutils-b64e260290108f8eb4f7a75f80a8355448aef7e4.tar.bz2
Turn allocate_computed_value into static "constructor"
This turns allocate_computed_value into a static "constructor" of value. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/dwarf2/expr.c')
-rw-r--r--gdb/dwarf2/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/expr.c b/gdb/dwarf2/expr.c
index fc92de8..ad6cf56 100644
--- a/gdb/dwarf2/expr.c
+++ b/gdb/dwarf2/expr.c
@@ -932,7 +932,7 @@ dwarf_expr_context::fetch_result (struct type *type, struct type *subobj_type,
piece_closure *c
= allocate_piece_closure (this->m_per_cu, this->m_per_objfile,
std::move (this->m_pieces), this->m_frame);
- retval = allocate_computed_value (subobj_type,
+ retval = value::allocate_computed (subobj_type,
&pieced_value_funcs, c);
retval->set_offset (subobj_offset);
}