From: Eric Anholt Date: Tue, 25 Aug 2020 18:33:58 +0000 (-0700) Subject: lima: Fix uninitialized var warning from using assert() as unreachable(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c24f792c8b4e64a8ea968f958240088965e2f192;p=mesa.git lima: Fix uninitialized var warning from using assert() as unreachable(). Reviewed-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/gallium/drivers/lima/ir/gp/lower.c b/src/gallium/drivers/lima/ir/gp/lower.c index 296f141216e..76a73bb4e21 100644 --- a/src/gallium/drivers/lima/ir/gp/lower.c +++ b/src/gallium/drivers/lima/ir/gp/lower.c @@ -323,7 +323,7 @@ static bool gpir_lower_eq_ne(gpir_block *block, gpir_node *node) node_new_op = gpir_op_max; /* or */ break; default: - assert(0); + unreachable("bad node op"); } gpir_alu_node *e = gpir_node_to_alu(node); diff --git a/src/gallium/drivers/lima/ir/pp/nir.c b/src/gallium/drivers/lima/ir/pp/nir.c index 0235fd18bbb..916e6f53e7e 100644 --- a/src/gallium/drivers/lima/ir/pp/nir.c +++ b/src/gallium/drivers/lima/ir/pp/nir.c @@ -305,7 +305,7 @@ static bool ppir_emit_intrinsic(ppir_block *block, nir_instr *ni) op = ppir_op_load_frontface; break; default: - assert(0); + unreachable("bad intrinsic"); break; }