summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2015-03-27 18:22:20 -0700
committerKenneth Graunke <[email protected]>2015-03-28 09:36:46 -0700
commit72b06fb08e40907cdf94d4f390f53f42240a4345 (patch)
tree8a48cefe39895410186d5ae6496b83a8a9af0961
parent31dc63d5ca090fed3f1adcd4fd0db2f1f7aa19f7 (diff)
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 <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r--src/glsl/nir/nir_validate.c3
1 files changed, 1 insertions, 2 deletions
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");
}
}