From: Kenneth Graunke Date: Sat, 28 Mar 2015 01:22:20 +0000 (-0700) Subject: nir: Fix copy and pasted error message in nir_validate. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72b06fb08e40907cdf94d4f390f53f42240a4345;p=mesa.git nir: Fix copy and pasted error message in nir_validate. These are nir_cf_nodes, not ALU instructions. Also, use unreachable() to preempt said review feedback. v2: Do it right (thanks Ilia). Signed-off-by: Kenneth Graunke Reviewed-by: Jason Ekstrand --- diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.c index f247ae0691c..e8c9d7b6fec 100644 --- a/src/glsl/nir/nir_validate.c +++ b/src/glsl/nir/nir_validate.c @@ -680,8 +680,7 @@ validate_cf_node(nir_cf_node *node, validate_state *state) break; default: - assert(!"Invalid ALU instruction type"); - break; + unreachable("Invalid CF node type"); } }