From: Jason Ekstrand Date: Fri, 19 Oct 2018 03:26:03 +0000 (-0500) Subject: nir/constant_folding: Add an unreachable to a switch X-Git-Tag: upstream/19.0.0~2005 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6de1869e86dc54f531f6c5099aa5125acb06ee0f;p=platform%2Fupstream%2Fmesa.git nir/constant_folding: Add an unreachable to a switch Reviewed-by: Ian Romanick Reviewed-by: Eric Anholt --- diff --git a/src/compiler/nir/nir_opt_constant_folding.c b/src/compiler/nir/nir_opt_constant_folding.c index e2920e6..05b47d4 100644 --- a/src/compiler/nir/nir_opt_constant_folding.c +++ b/src/compiler/nir/nir_opt_constant_folding.c @@ -89,6 +89,8 @@ constant_fold_alu_instr(nir_alu_instr *instr, void *mem_ctx) case 8: src[i].u8[j] = load_const->value.u8[instr->src[i].swizzle[j]]; break; + default: + unreachable("Invalid bit size"); } }