mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 04:41:25 +00:00
ir_builder_imm_float: mark them as const, otherwise they end up getting saved
This commit is contained in:
parent
09109bb176
commit
806850e408
1 changed files with 1 additions and 0 deletions
1
ir.c
1
ir.c
|
@ -1125,6 +1125,7 @@ ir_value* ir_value_var(const char *name, int storetype, int vtype)
|
|||
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->hasvalue = true;
|
||||
v->cvq = CV_CONST;
|
||||
v->constval.vfloat = value;
|
||||
|
||||
vec_push(self->globals, v);
|
||||
|
|
Loading…
Reference in a new issue