nir: don't return void

Fixes: 14531d676b ("nir: make nir_const_value scalar")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
This commit is contained in:
Eric Engestrom 2019-07-19 22:23:38 +01:00
parent 7797823afa
commit 3acc4278ad
1 changed files with 2 additions and 1 deletions

View File

@ -414,7 +414,8 @@ nir_eval_const_opcode(nir_op op, nir_const_value *dest,
switch (op) {
% for name in sorted(opcodes.keys()):
case nir_op_${name}:
return evaluate_${name}(dest, num_components, bit_width, src);
evaluate_${name}(dest, num_components, bit_width, src);
return;
% endfor
default:
unreachable("shouldn't get here");