aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcall.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r--gdb/infcall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 5553fc9..f3664d5 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -1020,7 +1020,8 @@ call_function_by_hand_dummy (struct value *function,
args[i] = value_arg_coerce (gdbarch, args[i],
param_type, prototyped);
- if (param_type != NULL && language_pass_by_reference (param_type))
+ if (param_type != NULL
+ && !(language_pass_by_reference (param_type).trivially_copyable))
args[i] = value_addr (args[i]);
}