diff options
author | Jason Ekstrand <[email protected]> | 2018-10-18 22:26:03 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-10-26 11:45:29 -0500 |
commit | 6de1869e86dc54f531f6c5099aa5125acb06ee0f (patch) | |
tree | 88a86765be7550aa26dd3a3cfcca8f1d7de18da8 /src/compiler/nir | |
parent | 28bb6abd1da83b26a9764598e39f80399b505b94 (diff) |
nir/constant_folding: Add an unreachable to a switch
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r-- | src/compiler/nir/nir_opt_constant_folding.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_opt_constant_folding.c b/src/compiler/nir/nir_opt_constant_folding.c index e2920e6b3fd..05b47d4c0fe 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"); } } |