Mesa (master): gallivm/nir: add missing break for isub.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Jan 26 22:23:36 UTC 2020


Module: Mesa
Branch: master
Commit: 58ba7b696ddd8c038188d414584e77aae35efe54
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=58ba7b696ddd8c038188d414584e77aae35efe54

Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Jan 27 07:21:17 2020 +1000

gallivm/nir: add missing break for isub.

Pointed out by coverity scan.

Fixes: 3adf74f2ef55 ("gallivm: pick integer builders for alu instructions.")
Reviewed-by: Bas Nieuwenhuizen <bas at 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir.c b/src/gallium/auxiliary/gallivm/lp_bld_nir.c
index 7a0e4175b43..f6e84855bf5 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_nir.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_nir.c
@@ -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]);



More information about the mesa-commit mailing list