mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
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:
parent
bcaf3687c5
commit
ee866ae3a6
1 changed files with 4 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue