Use a previously unused variable in bfin-tdep.c
[deliverable/binutils-gdb.git] / gdb / bfin-tdep.c
index da62130231bc25d0964fc883ef07e4c3540444bf..c84625c89480a738695e74deb8f9e39496a3fcfe 100644 (file)
@@ -526,7 +526,7 @@ bfin_push_dummy_call (struct gdbarch *gdbarch,
     {
       struct type *value_type = value_enclosing_type (args[i]);
       struct type *arg_type = check_typedef (value_type);
-      int container_len = (TYPE_LENGTH (value_type) + 3) & ~3;
+      int container_len = (TYPE_LENGTH (arg_type) + 3) & ~3;
 
       sp -= container_len;
       write_memory (sp, value_contents (args[i]), container_len);
This page took 0.024696 seconds and 4 git commands to generate.