case TYPE_TYPEDEF:
return get_type_size(type->typedeft.typedefe->type);
case TYPE_TYPEOF:
- if (type->typeoft.typeof_type) {
- return get_type_size(type->typeoft.typeof_type);
- } else {
- return get_type_size(type->typeoft.expression->base.type);
- }
+ return get_type_size(type->typeoft.typeof_type);
}
panic("invalid type in get_type_size");
}
return alignment;
}
case TYPE_TYPEOF:
- if (type->typeoft.typeof_type) {
- return get_type_alignment(type->typeoft.typeof_type);
- } else {
- return get_type_alignment(type->typeoft.expression->base.type);
- }
+ return get_type_alignment(type->typeoft.typeof_type);
}
panic("invalid type in get_type_alignment");
}
return modifiers;
}
case TYPE_TYPEOF:
- if (type->typeoft.typeof_type) {
- return get_type_modifiers(type->typeoft.typeof_type);
- } else {
- return get_type_modifiers(type->typeoft.expression->base.type);
- }
+ return get_type_modifiers(type->typeoft.typeof_type);
}
panic("invalid type found in get_type_modifiers");
}