mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
Turn value_zero into static "constructor"
This turns value_zero into a static "constructor" of value. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@@ -104,7 +104,7 @@ eval_op_m2_subscript (struct type *expect_type, struct expression *exp,
|
||||
}
|
||||
|
||||
if (noside == EVAL_AVOID_SIDE_EFFECTS)
|
||||
return value_zero (type->target_type (), VALUE_LVAL (arg1));
|
||||
return value::zero (type->target_type (), VALUE_LVAL (arg1));
|
||||
else
|
||||
return value_subscript (arg1, value_as_long (arg2));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user