From 0c74f8064539beb369a9a8de0c7a0b5b6c4e9fed Mon Sep 17 00:00:00 2001 From: Filip Gawin Date: Wed, 17 Nov 2021 00:46:19 +0100 Subject: [PATCH] glsl: fix trivial strict aliasing warning Reviewed-by: Matt Turner Part-of: --- 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++) {