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
|
@ -1204,7 +1204,7 @@ rust_subscript (struct type *expect_type, struct expression *exp,
|
|||
else
|
||||
new_type = base_type;
|
||||
|
||||
return value::zero (new_type, VALUE_LVAL (lhs));
|
||||
return value::zero (new_type, lhs->lval ());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1470,7 +1470,7 @@ rust_structop::evaluate (struct type *expect_type,
|
|||
else
|
||||
result = value_struct_elt (&lhs, {}, field_name, NULL, "structure");
|
||||
if (noside == EVAL_AVOID_SIDE_EFFECTS)
|
||||
result = value::zero (result->type (), VALUE_LVAL (result));
|
||||
result = value::zero (result->type (), result->lval ());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue