X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=ir.c;h=5461b44cfabdb65bf60297eb1a4912cd6e32334b;hb=87ff481abffb79150974b4d460c3bd96c3399be2;hp=420ef93069531cfbdb9385e1d66d6b342ace3bde;hpb=f06a59e3c7eb98c21dd3e172b261fca6f8bf62c3;p=xonotic%2Fgmqcc.git diff --git a/ir.c b/ir.c index 420ef93..5461b44 100644 --- a/ir.c +++ b/ir.c @@ -1018,6 +1018,7 @@ ir_value* ir_value_var(const char *name, int storetype, int vtype) self->fieldtype = TYPE_VOID; self->outtype = TYPE_VOID; self->store = storetype; + self->flags = 0; self->reads = NULL; self->writes = NULL; @@ -3323,6 +3324,7 @@ static bool ir_builder_gen_global(ir_builder *self, ir_value *global, bool isloc pushdef = true; if (OPTS_OPTIMIZATION(OPTIM_STRIP_CONSTANT_NAMES) && + !(global->flags & IR_FLAG_INCLUDE_DEF) && (global->name[0] == '#' || global->cvq == CV_CONST)) { pushdef = false;