Don't allocate space for locals for builtin functions.

While the symtab is needed for debug info, there is no need for any actual
data to be allocated for a builtin function's locals.
This commit is contained in:
Bill Currie 2012-12-15 13:13:40 +09:00
parent f3e2e239b8
commit 2317811f2b

View file

@ -620,6 +620,7 @@ build_builtin_function (symbol_t *sym, expr_t *bi_val, int far)
// for debug info
build_scope (sym, current_symtab);
sym->s.func->symtab->space->size = 0;
return sym->s.func;
}