Skip to content

Commit

Permalink
ir_builder_imm_float: add IR_FLAG_ERASEABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
Blub committed Oct 18, 2014
1 parent 806850e commit ddb0b7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ir.c
Expand Up @@ -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;
Expand Down

0 comments on commit ddb0b7d

Please sign in to comment.