forked from Imagelibrary/binutils-gdb
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:
@@ -2231,7 +2231,7 @@ value_from_setting (const setting &var, struct gdbarch *gdbarch)
|
||||
if (l->val.has_value ())
|
||||
value = *l->val;
|
||||
else
|
||||
return allocate_value (builtin_type (gdbarch)->builtin_void);
|
||||
return value::allocate (builtin_type (gdbarch)->builtin_void);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user