* valops.c (value_cast_pointers): Restore unused variable 'type1',
and use it to compute variable 't1'.
+2010-05-07 Michael Snyder <msnyder@vmware.com>
+
+ * valops.c (value_cast_pointers): Restore unused variable 'type1',
+ and use it to compute variable 't1'.
+
2010-05-07 Joel Brobecker <brobecker@adacore.com>
* ada-lang.c (assign_aggregate): Remove unused variable.
struct value *
value_cast_pointers (struct type *type, struct value *arg2)
{
+ struct type *type1 = check_typedef (type);
struct type *type2 = check_typedef (value_type (arg2));
- struct type *t1 = check_typedef (TYPE_TARGET_TYPE (type));
+ struct type *t1 = check_typedef (TYPE_TARGET_TYPE (type1));
struct type *t2 = check_typedef (TYPE_TARGET_TYPE (type2));
if (TYPE_CODE (t1) == TYPE_CODE_STRUCT