nir/lower_variables_scalar: Silence a compiler warning

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
Jason Ekstrand 2014-10-29 12:42:33 -07:00
parent 63eb32950e
commit ea1eefe13f
1 changed files with 2 additions and 0 deletions

View File

@ -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;