From ea1eefe13f2390981e37c22fd3791a042ef5f3e0 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 29 Oct 2014 12:42:33 -0700 Subject: [PATCH] nir/lower_variables_scalar: Silence a compiler warning Reviewed-by: Connor Abbott --- src/glsl/nir/nir_lower_variables_scalar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/glsl/nir/nir_lower_variables_scalar.c b/src/glsl/nir/nir_lower_variables_scalar.c index b754fa3f859..0b7263c88de 100644 --- a/src/glsl/nir/nir_lower_variables_scalar.c +++ b/src/glsl/nir/nir_lower_variables_scalar.c @@ -369,6 +369,8 @@ reg_const_load_single_instr(nir_reg_dest reg, nir_constant *constant, instr->value.u[i] = constant->value.u[i + offset] ? NIR_TRUE : NIR_FALSE; break; + default: + unreachable("Invalid immediate type"); } } instr->dest.reg = reg; -- 2.30.2