From: Connor Abbott Date: Fri, 13 Sep 2019 06:18:29 +0000 (+0700) Subject: lima/gpir: Fix compiler warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f989a024b45fdb228313328a8989f7fa797bf261;p=mesa.git lima/gpir: Fix compiler warning Reviewed-by: Vasily Khoruzhick --- diff --git a/src/gallium/drivers/lima/ir/gp/nir.c b/src/gallium/drivers/lima/ir/gp/nir.c index 567d2aa1896..6dcb4d88f02 100644 --- a/src/gallium/drivers/lima/ir/gp/nir.c +++ b/src/gallium/drivers/lima/ir/gp/nir.c @@ -246,7 +246,7 @@ static bool gpir_emit_load_const(gpir_block *block, nir_instr *ni) { nir_load_const_instr *instr = nir_instr_as_load_const(ni); gpir_const_node *node = - gpir_node_create_ssa(block, gpir_op_const, &instr->def); + gpir_node_to_const(gpir_node_create_ssa(block, gpir_op_const, &instr->def)); if (unlikely(!node)) return false;