mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 06:50:10 +01:00
lima: Fix uninitialized var warning from using assert() as unreachable().
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6462>
This commit is contained in:
parent
f6456d74ed
commit
c24f792c8b
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue