unbreak things
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 22 Jun 2015 18:59:55 +0000 (11:59 -0700)
committerConnor Abbott <cwabbott0@gmail.com>
Mon, 22 Jun 2015 18:59:55 +0000 (11:59 -0700)
src/glsl/nir/spirv_to_nir.c

index a0a75040771476226b8f1e2ab2142ccced3158ea..e0f280ceaae75ab6ae70b39792d6f2c9a89ca89a 100644 (file)
@@ -1277,7 +1277,7 @@ vtn_handle_alu(struct vtn_builder *b, SpvOp opcode,
 {
    struct vtn_value *val = vtn_push_value(b, w[2], vtn_value_type_ssa);
    val->type = vtn_value(b, w[1], vtn_value_type_type)->type;
-   val->ssa->type = val->type;
+   val->ssa = vtn_create_ssa_value(b, val->type);
 
    /* Collect the various SSA sources */
    unsigned num_inputs = count - 3;