From 849d013f5ec90c4b502167243d4e912e75c379fc Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 25 Jan 2011 15:43:57 +0900 Subject: [PATCH] Allocate space for function parameters. --- tools/qfcc/source/function.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/qfcc/source/function.c b/tools/qfcc/source/function.c index fe3cd36f9..eeea4bdb9 100644 --- a/tools/qfcc/source/function.c +++ b/tools/qfcc/source/function.c @@ -428,6 +428,7 @@ build_scope (symbol_t *fsym, symtab_t *parent) if (fsym->type->t.func.num_params < 0) { args = new_symbol_type (".args", &type_va_list); + initialize_def (args, args->type, 0, symtab->space, st_local); symtab_addsymbol (symtab, args); } @@ -437,6 +438,7 @@ build_scope (symbol_t *fsym, symtab_t *parent) if (!p->type) continue; // non-param selector param = new_symbol_type (p->name, p->type); + initialize_def (param, param->type, 0, symtab->space, st_local); symtab_addsymbol (symtab, param); i++; }