adding missing initializer for ir_value's member array

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-12 21:56:53 +02:00
parent c7cca404dc
commit 5680c661a6

4
ir.c
View file

@ -575,6 +575,10 @@ ir_value* ir_value_var(const char *name, int storetype, int vtype)
memset(&self->constval, 0, sizeof(self->constval));
memset(&self->code, 0, sizeof(self->code));
self->members[0] = NULL;
self->members[1] = NULL;
self->members[2] = NULL;
MEM_VECTOR_INIT(self, life);
return self;
}