From 0ab3b3c641fa67f1f538c3b9e21f6a1dcb802081 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Mon, 29 Jan 2024 21:35:24 +0100 Subject: [PATCH] nir/builder: Fix compilation with gcc-13 when tsan is enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../src/compiler/nir/nir_builder.h: In function ‘nir_build_deref_follower’: ../src/compiler/nir/nir_builder.h:1607:1: error: control reaches end of non-void function [-Werror=return-type] 1607 | } Fixes: 4a4e1757381c65653fd6a81cf4e969ddff926ed5 nir: Support deref instructions in lower_var_copies Signed-off-by: Gert Wollny Part-of: --- src/compiler/nir/nir_builder.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/nir/nir_builder.h b/src/compiler/nir/nir_builder.h index a16ece60e9a..381eebb52a3 100644 --- a/src/compiler/nir/nir_builder.h +++ b/src/compiler/nir/nir_builder.h @@ -1604,6 +1604,7 @@ nir_build_deref_follower(nir_builder *b, nir_deref_instr *parent, default: unreachable("Invalid deref instruction type"); } + return NULL; } static inline nir_def *