Enable the small struct optimization.

For now, anyway. It would probably be much better to handle this sort of
thing in the optimizer stage.
This commit is contained in:
Bill Currie 2011-02-14 15:21:06 +09:00
parent bcaf3687c5
commit ee866ae3a6

View file

@ -100,9 +100,10 @@ low_level_type (type_t *type)
if (is_enum (type))
return type_default->type;
if (is_struct (type) || is_class (type)) {
//FIXME enable later when the real bug is fixed
//if (type_size (type) == 1)
// return ev_integer;
//FIXME does this break anything?
//maybe the peephole optimizer should do this sort of thing.
if (type_size (type) == 1)
return ev_integer;
return ev_void;
}
if (is_array (type))