From: Eric Engestrom Date: Fri, 19 Jul 2019 21:23:38 +0000 (+0100) Subject: nir: don't return void X-Git-Tag: upstream/19.3.0~3864 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3acc4278ad4138ad3a914085aefd7c47d46e1ad4;p=platform%2Fupstream%2Fmesa.git nir: don't return void Fixes: 14531d676b11999123c0 ("nir: make nir_const_value scalar") Signed-off-by: Eric Engestrom Reviewed-by: Karol Herbst --- diff --git a/src/compiler/nir/nir_constant_expressions.py b/src/compiler/nir/nir_constant_expressions.py index f26fd0a..ed420c3 100644 --- a/src/compiler/nir/nir_constant_expressions.py +++ b/src/compiler/nir/nir_constant_expressions.py @@ -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");