diff options
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r-- | gdb/infcall.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c index 713738ee8b6..38335a79962 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -157,10 +157,11 @@ value_arg_coerce (struct gdbarch *gdbarch, struct value *arg, switch (TYPE_CODE (type)) { case TYPE_CODE_REF: + case TYPE_CODE_RVALUE_REF: { struct value *new_value; - if (TYPE_CODE (arg_type) == TYPE_CODE_REF) + if (TYPE_IS_REFERENCE (arg_type)) return value_cast_pointers (type, arg, 0); /* Cast the value to the reference's target type, and then |