mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
Turn allocate_optimized_out_value into static "constructor"
This turns allocate_optimized_out_value into a static "constructor" of value. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@ -556,7 +556,7 @@ coerce_unspec_val_to_type (struct value *val, struct type *type)
|
||||
struct value *result;
|
||||
|
||||
if (value_optimized_out (val))
|
||||
result = allocate_optimized_out_value (type);
|
||||
result = value::allocate_optimized_out (type);
|
||||
else if (val->lazy ()
|
||||
/* Be careful not to make a lazy not_lval value. */
|
||||
|| (VALUE_LVAL (val) != not_lval
|
||||
|
Reference in New Issue
Block a user