[qfcc] Strip alias info off function params

For now. This fixes many problems but does lose type aliasing info from
function parameters.
This commit is contained in:
Bill Currie 2020-03-28 18:51:38 +09:00
parent da39e675b8
commit 69037fe5eb

View file

@ -170,6 +170,7 @@ parse_params (type_t *type, param_t *parms)
{
param_t *p;
type_t *new;
type_t *ptype;
int count = 0;
if (type && is_class (type)) {
@ -201,7 +202,8 @@ parse_params (type_t *type, param_t *parms)
error (0, "cannot use an object as a parameter (forgot *?)");
p->type = &type_id;
}
new->t.func.param_types[new->t.func.num_params] = p->type;
ptype = (type_t *) unalias_type (p->type); //FIXME cast
new->t.func.param_types[new->t.func.num_params] = ptype;
new->t.func.num_params++;
}
}