From 806850e4083d3a993fdb941cddb5c257d37f3617 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Sat, 18 Oct 2014 13:53:15 +0200 Subject: [PATCH] ir_builder_imm_float: mark them as const, otherwise they end up getting saved --- ir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ir.c b/ir.c index f4f386d..00d81c2 100644 --- a/ir.c +++ b/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); -- 2.39.2