From 72b06fb08e40907cdf94d4f390f53f42240a4345 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 27 Mar 2015 18:22:20 -0700 Subject: [PATCH] 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 --- src/glsl/nir/nir_validate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.c index f247ae0..e8c9d7b 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"); } } -- 2.7.4