Don't die on functions with no variables

This commit is contained in:
Wolfgang Bumiller 2012-07-04 13:16:15 +02:00
parent ed24ea0cef
commit 7245b675b2

3
ir.c
View file

@ -1663,6 +1663,9 @@ bool ir_function_allocate_locals(ir_function *self)
function_allocator alloc;
if (!self->locals_count)
return true;
MEM_VECTOR_INIT(&alloc, locals);
MEM_VECTOR_INIT(&alloc, sizes);
MEM_VECTOR_INIT(&alloc, positions);