#include "nir.h"
#include <stdlib.h>
-#include <unistd.h>
/*
* Implements the classic to-SSA algorithm described by Cytron et. al. in
* to preserve the information that this source is undefined
*/
nir_ssa_undef_instr *instr =
- nir_ssa_undef_instr_create(state->mem_ctx, reg->num_components);
+ nir_ssa_undef_instr_create(state->mem_ctx, reg->num_components,
+ reg->bit_size);
/*
* We could just insert the undefined instruction before the instruction