summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_lower_system_values.c
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-01-21 20:22:18 -0800
committerMatt Turner <[email protected]>2015-01-21 21:06:37 -0800
commit28b7c6b28523f9a6786441bb0b86bf143b8a9b7c (patch)
tree698910730ae87210891effeb8ae7b2554ca618d2 /src/glsl/nir/nir_lower_system_values.c
parent6de077f01d3439c80c9392455d6ca7e7f4493632 (diff)
nir: Replace assert(0) with unreachable().
Fixes a couple of warnings in the process. Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_lower_system_values.c')
-rw-r--r--src/glsl/nir/nir_lower_system_values.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glsl/nir/nir_lower_system_values.c b/src/glsl/nir/nir_lower_system_values.c
index f681a6ce934..631f7cd4636 100644
--- a/src/glsl/nir/nir_lower_system_values.c
+++ b/src/glsl/nir/nir_lower_system_values.c
@@ -64,8 +64,7 @@ convert_instr(nir_intrinsic_instr *instr)
op = nir_intrinsic_load_invocation_id;
break;
default:
- assert(0);
- break;
+ unreachable("not reached");
}
nir_intrinsic_instr *new_instr = nir_intrinsic_instr_create(mem_ctx, op);