From cb9eb1834d8fee07d15c407829923d8b074c89ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 22 Jul 2019 15:59:49 -0400 Subject: [PATCH] =?utf8?q?radeonsi:=20fix=20warning:=20=E2=80=98ret?= =?utf8?q?=E2=80=99=20may=20be=20used=20uninitialized?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Dave Airlie --- src/gallium/drivers/radeonsi/si_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 6fd7a56dbcd..679fa4edabd 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -6771,7 +6771,7 @@ static void si_build_wrapper_function(struct si_shader_context *ctx, initial_num_out_sgpr = num_out_sgpr; /* Now chain the parts. */ - LLVMValueRef ret; + LLVMValueRef ret = NULL; for (unsigned part = 0; part < num_parts; ++part) { LLVMValueRef in[48]; LLVMTypeRef ret_type; -- 2.30.2