diff options
author | Matt Turner <[email protected]> | 2015-01-21 20:22:18 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-01-21 21:06:37 -0800 |
commit | 28b7c6b28523f9a6786441bb0b86bf143b8a9b7c (patch) | |
tree | 698910730ae87210891effeb8ae7b2554ca618d2 /src/glsl/nir/nir_to_ssa.c | |
parent | 6de077f01d3439c80c9392455d6ca7e7f4493632 (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_to_ssa.c')
-rw-r--r-- | src/glsl/nir/nir_to_ssa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/nir/nir_to_ssa.c b/src/glsl/nir/nir_to_ssa.c index b9b1cff9cf2..548f0c5ac23 100644 --- a/src/glsl/nir/nir_to_ssa.c +++ b/src/glsl/nir/nir_to_ssa.c @@ -313,7 +313,7 @@ rewrite_alu_instr_forward(nir_alu_instr *instr, rewrite_state *state) case 2: op = nir_op_vec2; break; case 3: op = nir_op_vec3; break; case 4: op = nir_op_vec4; break; - default: assert(0); break; + default: unreachable("not reached"); } nir_alu_instr *vec = nir_alu_instr_create(state->mem_ctx, op); |