Remove deprecated_lval_hack
This removes deprecated_lval_hack and the VALUE_LVAL macro, replacing all uses with a call to value::lval. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
parent
6f9c9d71c2
commit
736355f2e1
28 changed files with 112 additions and 122 deletions
|
@ -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 (), arg1->lval ());
|
||||
else
|
||||
return value_subscript (arg1, value_as_long (arg2));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue