From: Wolfgang Bumiller Date: Sat, 18 Oct 2014 12:25:28 +0000 (+0200) Subject: ir_builder_imm_float: add IR_FLAG_ERASEABLE X-Git-Tag: xonotic-v0.8.1~9^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ddb0b7dd9d99809856eb927fd90ec47d2c47f630;p=xonotic%2Fgmqcc.git ir_builder_imm_float: add IR_FLAG_ERASEABLE --- diff --git a/ir.c b/ir.c index 00d81c2..d562edc 100644 --- a/ir.c +++ b/ir.c @@ -1124,6 +1124,7 @@ ir_value* ir_value_var(const char *name, int storetype, int vtype) /* helper function */ static ir_value* ir_builder_imm_float(ir_builder *self, float value, bool add_to_list) { ir_value *v = ir_value_var("#IMMEDIATE", store_global, TYPE_FLOAT); + v->flags |= IR_FLAG_ERASEABLE; v->hasvalue = true; v->cvq = CV_CONST; v->constval.vfloat = value;