[Mesa-dev] [PATCH 02/31] nir/constant_folding: Add an unreachable to a switch
Jason Ekstrand
jason at jlekstrand.net
Mon Oct 22 22:13:33 UTC 2018
---
src/compiler/nir/nir_opt_constant_folding.c | 2 ++
1 file changed, 2 insertions(+)
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");
}
}
--
2.19.1
More information about the mesa-dev
mailing list