diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 10:17:10 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:07 -0700 |
commit | 4b53ca88831137e94a6882f224d755a2d32ab8ef (patch) | |
tree | d4a4f240db65c78ba1729fa68c01abe082b01114 /gdb/valops.c | |
parent | 76675c4d0bc454ed1ae369f98ad848754d0e81a0 (diff) | |
download | binutils-4b53ca88831137e94a6882f224d755a2d32ab8ef.zip binutils-4b53ca88831137e94a6882f224d755a2d32ab8ef.tar.gz binutils-4b53ca88831137e94a6882f224d755a2d32ab8ef.tar.bz2 |
Turn deprecated_value_modifiable into method
This changes deprecated_value_modifiable to be a method of value.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index dce166d..f462da8 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1089,7 +1089,7 @@ value_assign (struct value *toval, struct value *fromval) struct value *val; struct frame_id old_frame; - if (!deprecated_value_modifiable (toval)) + if (!toval->deprecated_modifiable ()) error (_("Left operand of assignment is not a modifiable lvalue.")); toval = coerce_ref (toval); |