From: Iago Toral Quiroga Date: Tue, 19 May 2015 07:02:06 +0000 (+0200) Subject: nir/glsl_to_nir: ignore an instruction's dest if it hasn't any X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=475d9c32d1331eb330c8594ed6f84e668157500e;p=mesa.git nir/glsl_to_nir: ignore an instruction's dest if it hasn't any Reviewed-by: Connor Abbott Reviewed-by: Kristian Høgsberg --- diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp index d1e2488a69e..f8f3fd85bd4 100644 --- a/src/glsl/nir/glsl_to_nir.cpp +++ b/src/glsl/nir/glsl_to_nir.cpp @@ -1036,7 +1036,8 @@ nir_visitor::add_instr(nir_instr *instr, unsigned num_components) { nir_dest *dest = get_instr_dest(instr); - nir_ssa_dest_init(instr, dest, num_components, NULL); + if (dest) + nir_ssa_dest_init(instr, dest, num_components, NULL); nir_instr_insert_after_cf_list(this->cf_node_list, instr); this->result = instr;