nir: don't return void
authorEric Engestrom <eric.engestrom@intel.com>
Fri, 19 Jul 2019 21:23:38 +0000 (22:23 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 23 Jul 2019 15:02:37 +0000 (16:02 +0100)
Fixes: 14531d676b11999123c0 ("nir: make nir_const_value scalar")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
src/compiler/nir/nir_constant_expressions.py

index f26fd0a3ea23eb109d62b1d0060ab5e6996a72f5..ed420c300f2e4574d87731a0103616fc6670d628 100644 (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");