With that the actual call will be eliminated if the code is
compiled with NDEBUG.
Fixes:
79ca456b4837b3bc21cf9ef3c03c505c4b4909f6
r600/sfn: rewrite NIR backend
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6832
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Filip Gawin <filip@gawin.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17496>
}
if (!child_block_empty(if_stmt->else_list)) {
- assert(emit_control_flow(ControlFlowInstr::cf_else));
-
+ if (!emit_control_flow(ControlFlowInstr::cf_else))
+ return false;
foreach_list_typed(nir_cf_node, n, node, &if_stmt->else_list)
if (!process_cf_node(n)) return false;
}