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.h | |
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.h')
-rw-r--r-- | src/glsl/nir/nir.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 7b5794d7470..52bcd877f44 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -938,8 +938,7 @@ nir_tex_instr_dest_size(nir_tex_instr *instr) ret = 3; break; default: - assert(0); - break; + unreachable("not reached"); } if (instr->is_array) ret++; |