py: Increase fixed size of stack-info in native emitter.

This is a temporary fix.
This commit is contained in:
Damien George 2015-03-26 17:54:12 +00:00
parent 4112590a60
commit 51229afbde
1 changed files with 2 additions and 1 deletions

View File

@ -564,8 +564,9 @@ STATIC void emit_native_start_pass(emit_t *emit, pass_kind_t pass, scope_t *scop
// allocate memory for keeping track of the objects on the stack
// XXX don't know stack size on entry, and it should be maximum over all scopes
// XXX this is such a big hack and really needs to be fixed
if (emit->stack_info == NULL) {
emit->stack_info_alloc = scope->stack_size + 50;
emit->stack_info_alloc = scope->stack_size + 200;
emit->stack_info = m_new(stack_info_t, emit->stack_info_alloc);
}