mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 03:50:36 +00:00
Don't die on functions with no variables
This commit is contained in:
parent
ed24ea0cef
commit
7245b675b2
1 changed files with 3 additions and 0 deletions
3
ir.c
3
ir.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue