Set VT_LVAL_xxx flags for function arguments in gfunc_prolog (Daniel Glöckner)

This commit is contained in:
Daniel Glöckner
2008-08-20 01:44:12 +02:00
committed by grischka
parent 8f7e3f325d
commit 2c657f6608
4 changed files with 4 additions and 4 deletions

View File

@ -1964,7 +1964,7 @@ void gfunc_prolog(CType * func_type)
/* define parameters */
while ((sym = sym->next) != NULL) {
type = &sym->type;
sym_push(sym->v & ~SYM_FIELD, type, VT_LOCAL | VT_LVAL, addr);
sym_push(sym->v & ~SYM_FIELD, type, VT_LOCAL | lvalue_type(type->t), addr);
size = type_size(type, &align);
size = (size + 3) & ~3;