Mesa (main): glsl: fix trivial strict aliasing warning

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Nov 17 16:51:16 UTC 2021


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

Author: Filip Gawin <filip.gawin at zoho.com>
Date:   Wed Nov 17 00:46:19 2021 +0100

glsl: fix trivial strict aliasing warning

Reviewed-by: Matt Turner <mattst88 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13827>

---

 src/compiler/glsl/linker.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp
index add7887d5c0..d8c8d20c9ef 100644
--- a/src/compiler/glsl/linker.cpp
+++ b/src/compiler/glsl/linker.cpp
@@ -2554,7 +2554,7 @@ link_intrastage_shaders(void *mem_ctx,
     */
    if (main_sig != NULL) {
       exec_node *insertion_point =
-         move_non_declarations(linked->ir, (exec_node *) &main_sig->body, false,
+         move_non_declarations(linked->ir, &main_sig->body.head_sentinel, false,
                                linked);
 
       for (unsigned i = 0; i < num_shaders; i++) {



More information about the mesa-commit mailing list