mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-26 05:01:26 +00:00
missing initializer
This commit is contained in:
parent
e606913187
commit
ece880d5e3
1 changed files with 3 additions and 0 deletions
3
ir.c
3
ir.c
|
@ -306,6 +306,8 @@ ir_function* ir_function_new(ir_builder* owner, int outtype)
|
||||||
if (!self)
|
if (!self)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
memset(self, 0, sizeof(*self));
|
||||||
|
|
||||||
self->name = NULL;
|
self->name = NULL;
|
||||||
if (!ir_function_set_name(self, "<@unnamed>")) {
|
if (!ir_function_set_name(self, "<@unnamed>")) {
|
||||||
mem_d(self);
|
mem_d(self);
|
||||||
|
@ -323,6 +325,7 @@ ir_function* ir_function_new(ir_builder* owner, int outtype)
|
||||||
MEM_VECTOR_INIT(self, locals);
|
MEM_VECTOR_INIT(self, locals);
|
||||||
|
|
||||||
self->code_function_def = -1;
|
self->code_function_def = -1;
|
||||||
|
self->allocated_locals = 0;
|
||||||
|
|
||||||
self->run_id = 0;
|
self->run_id = 0;
|
||||||
return self;
|
return self;
|
||||||
|
|
Loading…
Reference in a new issue