redundant check for NULL TYPE_TARGET_TYPE.
* m2-valprint.c (m2_print_long_set): Likewise.
* p-valprint.c (pascal_type_print_base): Likewise.
+2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Remove
+ redundant check for NULL TYPE_TARGET_TYPE.
+ * m2-valprint.c (m2_print_long_set): Likewise.
+ * p-valprint.c (pascal_type_print_base): Likewise.
+
2009-07-02 Ulrich Weigand <uweigand@de.ibm.com>
* printcmd.c (next_gdbarch): New static variable.
{
struct type *target = TYPE_TARGET_TYPE (type);
- if (target == NULL)
- target = builtin_type_int32;
-
if (TYPE_NFIELDS(type) == 0)
return;
return 0;
range = TYPE_INDEX_TYPE (TYPE_FIELD_TYPE (type, i));
target = TYPE_TARGET_TYPE (range);
- if (target == NULL)
- target = builtin_type_int32;
l1 = TYPE_LOW_BOUND (TYPE_INDEX_TYPE (TYPE_FIELD_TYPE (type, i)));
h1 = TYPE_HIGH_BOUND (TYPE_INDEX_TYPE (TYPE_FIELD_TYPE (type, len-1)));
}
target = TYPE_TARGET_TYPE (range);
- if (target == NULL)
- target = builtin_type_int32;
if (get_discrete_bounds (range, &field_low, &field_high) >= 0)
{
if (get_discrete_bounds (range, &field_low, &field_high) < 0)
break;
target = TYPE_TARGET_TYPE (range);
- if (target == NULL)
- target = builtin_type_int32;
}
}
if (element_seen)
case TYPE_CODE_RANGE:
{
struct type *target = TYPE_TARGET_TYPE (type);
- if (target == NULL)
- target = builtin_type_int32;
print_type_scalar (target, TYPE_LOW_BOUND (type), stream);
fputs_filtered ("..", stream);
print_type_scalar (target, TYPE_HIGH_BOUND (type), stream);