Remove the small struct optimization.

It might cause trouble for the binary_expr() cleanup.
This commit is contained in:
Bill Currie 2013-09-27 17:44:29 +09:00
parent 3295370328
commit ec98954dfc

View file

@ -101,13 +101,8 @@ low_level_type (type_t *type)
return type->type;
if (is_enum (type))
return type_default->type;
if (is_struct (type)) {
//FIXME does this break anything?
//maybe the peephole optimizer should do this sort of thing.
if (type_size (type) == 1)
return ev_integer;
if (is_struct (type))
return ev_void;
}
if (is_array (type))
return ev_void;
internal_error (0, "invalid complex type");