From 86a74e9b6b8953a55de234f185a14defd646f489 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Tue, 2 Jun 2015 19:26:42 +1000 Subject: [PATCH] nir: use src for ssa helper Reviewed-by: Thomas Helland Reviewed-by: Connor Abbott --- src/glsl/nir/glsl_to_nir.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp index af758ceb020..ad8cfad627b 100644 --- a/src/glsl/nir/glsl_to_nir.cpp +++ b/src/glsl/nir/glsl_to_nir.cpp @@ -930,13 +930,9 @@ nir_visitor::evaluate_rvalue(ir_rvalue* ir) } nir_dest *dest = get_instr_dest(this->result); - assert(dest->is_ssa); - nir_src src = NIR_SRC_INIT; - src.is_ssa = true; - src.ssa = &dest->ssa; - return src; + return nir_src_for_ssa(&dest->ssa); } nir_alu_instr * -- 2.30.2