mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 09:38:57 +00: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:
@@ -2855,7 +2855,7 @@ var_value_operation::evaluate_for_sizeof (struct expression *exp,
|
||||
return value_zero (size_type, not_lval);
|
||||
else if (is_dynamic_type (type->index_type ())
|
||||
&& type->bounds ()->high.kind () == PROP_UNDEFINED)
|
||||
return allocate_optimized_out_value (size_type);
|
||||
return value::allocate_optimized_out (size_type);
|
||||
}
|
||||
}
|
||||
return evaluate_subexp_for_sizeof_base (exp, type);
|
||||
|
||||
Reference in New Issue
Block a user