mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
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>
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user