gallivm/nir: add missing break for isub.
authorDave Airlie <airlied@redhat.com>
Sun, 26 Jan 2020 21:21:17 +0000 (07:21 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 26 Jan 2020 22:05:27 +0000 (08:05 +1000)
Pointed out by coverity scan.

Fixes: 3adf74f2ef55 ("gallivm: pick integer builders for alu instructions.")
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3571>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3571>

src/gallium/auxiliary/gallivm/lp_bld_nir.c

index 7a0e4175b435818c43050da7e331e67300a54681..f6e84855bf5d4fd9a1ae144e2eff251e98ad45ca 100644 (file)
@@ -680,7 +680,7 @@ static LLVMValueRef do_alu_action(struct lp_build_nir_context *bld_base,
    case nir_op_isub:
       result = lp_build_sub(get_int_bld(bld_base, false, src_bit_size[0]),
                             src[0], src[1]);
-
+      break;
    case nir_op_ixor:
       result = lp_build_xor(get_int_bld(bld_base, false, src_bit_size[0]),
                             src[0], src[1]);