Mesa (main): gallivm: avoid a self-assign warning

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Dec 22 04:15:14 UTC 2021


Module: Mesa
Branch: main
Commit: f1dfc6a780ce65b8b274d30efdc532641527f05e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f1dfc6a780ce65b8b274d30efdc532641527f05e

Author: Thomas H.P. Andersen <phomes at gmail.com>
Date:   Mon Dec 20 22:25:53 2021 +0100

gallivm: avoid a self-assign warning

Fixes a clang warning

Reviewed-by: Emma Anholt <emma at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14272>

---

 src/gallium/auxiliary/gallivm/lp_bld_format_yuv.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_yuv.c b/src/gallium/auxiliary/gallivm/lp_bld_format_yuv.c
index 97deffe1de0..3b346f37d7c 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_format_yuv.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_format_yuv.c
@@ -335,7 +335,6 @@ rgb_to_rgba_aos(struct gallivm_state *gallivm,
     */
 
 #if UTIL_ARCH_LITTLE_ENDIAN
-   r = r;
    g = LLVMBuildShl(builder, g, lp_build_const_int_vec(gallivm, type, 8), "");
    b = LLVMBuildShl(builder, b, lp_build_const_int_vec(gallivm, type, 16), "");
    a = lp_build_const_int_vec(gallivm, type, 0xff000000);



More information about the mesa-commit mailing list