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:
parent
7797823afa
commit
3acc4278ad
|
@ -414,7 +414,8 @@ nir_eval_const_opcode(nir_op op, nir_const_value *dest,
|
||||||
switch (op) {
|
switch (op) {
|
||||||
% for name in sorted(opcodes.keys()):
|
% for name in sorted(opcodes.keys()):
|
||||||
case nir_op_${name}:
|
case nir_op_${name}:
|
||||||
return evaluate_${name}(dest, num_components, bit_width, src);
|
evaluate_${name}(dest, num_components, bit_width, src);
|
||||||
|
return;
|
||||||
% endfor
|
% endfor
|
||||||
default:
|
default:
|
||||||
unreachable("shouldn't get here");
|
unreachable("shouldn't get here");
|
||||||
|
|
Loading…
Reference in New Issue